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.
继续阅读
返回索引
AgentSight:基于 eBPF 的零侵入 LLM 智能体可观测性工具
 
上一篇 / 上一页
开发指南
collector 二进制在编译时通过 RustEmbed 将前端资源内嵌。默认情况下,每次前端改动都需要重新编译 collector(cargo build --release)才能生效。
下一篇 / 下一页
AgentSight:基于 eBPF 的零侵入 LLM 智能体可观测性工具
 
- 最后更新
- 2026年6月3日
- 首次发布
- 2026年6月3日
- 贡献者
- LinuxDev9002
这个页面有帮助吗?