Subtrace
lastmod 2025-02-21created 2025-02-211 edits
Wireshark for Docker containers
| WARNING |
| Be sure to read the #Hacker News comments section. There seem to be some issues |
About
- A tool that lets you trace every network request made from Docker containers
- Applies Wireshark's functionality to container environments
Key features
- Usable immediately with no configuration
- Just add subtrace run in front of the backend server's start command
How Subtrace works
- Intercepts all network-related Linux system calls (syscalls) using Seccomp BPF
- Proxies TCP connections to analyze HTTP requests and sends them to the browser over WebSocket
- Requests can be inspected visually using the Network tab of Chrome DevTools
- Unlike existing log-based tools such as Sentry or OpenTelemetry, you can see every request as-is in real time
Code contributions
- Subtrace is open source but currently does not accept Pull Requests
- This is because, as a startup, it runs with a small team and lacks the capacity to manage an open-source community efficiently
- The policy may change in the future, and feature requests and bug reports are always welcome
Hacker News comments
- Show HN: Subtrace – Wireshark for Docker Containers | Hacker News
- Reading the docs, it seems the subtrace process sends all data to a server. I wouldn't want that in a production environment that handles API keys and personal data
- Wondering if there's a way to run it fully self-hosted. If not, are there plans for it? Also curious how you'd monetize a self-hosted option
- It looks really useful, and I'll definitely try it to see whether it goes in my toolbox