Docker Usage
Use Docker when you want a packaged AgentSight runtime for container, CI, or isolated Linux environments. Docker does not remove the eBPF permission requirements: the container must observe the host kernel and host processes, so it needs privileged mode and host mounts.
For local day-to-day use, the release binary plus sudo agentsight top or
sudo agentsight record -- ... in README.md is usually simpler.
Requirements
- Linux host with eBPF support
- Docker access
--privileged--pid=host--network=hostwhen you want the web UI and host-network behavior to be straightforward- Host mounts for
/sys,/usr, and/libso process and SSL probes can resolve host state and libraries
Monitor Python AI Tools
docker run --privileged --pid=host --network=host \
-v /sys:/sys:ro -v /usr:/usr:ro -v /lib:/lib:ro \
-v "$(pwd)/logs:/logs" \
ghcr.io/eunomia-bpf/agentsight:latest \
record --comm python --log-file /logs/record.logMonitor Claude Code
Claude Code uses a user-local binary. Mount the Claude install directory and pass the binary path inside the container:
docker run --privileged --pid=host --network=host \
-v /sys:/sys:ro -v /usr:/usr:ro -v /lib:/lib:ro \
-v "$HOME/.local/share/claude:/claude:ro" \
-v "$(pwd)/logs:/logs" \
ghcr.io/eunomia-bpf/agentsight:latest \
record --comm claude --binary-path /claude/versions/2.1.39 --log-file /logs/record.logAdjust /claude/versions/2.1.39 to the version installed on the host.
Notes
- A normal unprivileged Docker container cannot load eBPF probes or inspect host processes.
- Docker's default seccomp profile can block eBPF-related syscalls;
--privilegedavoids that for local testing and CI runners where this is acceptable. - Captured logs can contain prompts, responses, file paths, headers, and network targets. Treat mounted log directories as sensitive.
Continue exploring
Back to index
AgentSight: System-wide AI agent tracing and monitoring with eBPF
  
Previous
Development Guide
The collector binary embeds frontend assets via RustEmbed at compile time. By default, every frontend change requires recompiling the collector (cargo build --release) to take effect.
Next
AgentSight: System-wide AI agent tracing and monitoring with eBPF
  
- Last updated
- Jun 3, 2026
- First published
- Jun 3, 2026
- Contributors
- LinuxDev9002
Was this page helpful?