Docker Usage¶
DebugBox integrates seamlessly with Docker for local development and container inspection.
Interactive Session¶
# Latest balanced (default)
docker run -it --rm ghcr.io/ibtisam-iq/debugbox
# Specific variant
docker run -it --rm ghcr.io/ibtisam-iq/debugbox:lite
docker run -it --rm ghcr.io/ibtisam-iq/debugbox:power
# Production (pinned version)
docker run -it --rm ghcr.io/ibtisam-iq/debugbox:1.2.0
docker run -it --rm ghcr.io/ibtisam-iq/debugbox:lite-1.2.0
Power Variant with Capabilities¶
Note: For advanced networking tools (tshark, conntrack, nft, iptables), add Linux capabilities:
Share Another Container's Network¶
Inspect another container's network namespace:
Host Network Access¶
Debug the Docker host directly:
Volume Mount for Artifacts¶
Save packet captures or logs to host:
docker run -it --rm \
-v $(pwd)/captures:/captures \
--cap-add=NET_ADMIN \
ghcr.io/ibtisam-iq/debugbox:power
# Inside
tshark -i eth0 -w /captures/traffic.pcap
Docker Compose Sidecar¶
Add a debugging sidecar to your compose file:
Standard Debugging¶
services:
app:
image: ghcr.io/ibtisam-iq/ibtisam-iq:latest
ports: ["8080:8080"]
debugbox:
image: ghcr.io/ibtisam-iq/debugbox:balanced
network_mode: service:app
command: sleep infinity
tty: true
With Networking Capabilities (Power Variant)¶
services:
app:
image: ghcr.io/ibtisam-iq/ibtisam-iq:latest
ports: ["8080:8080"]
debugbox-power:
image: ghcr.io/ibtisam-iq/debugbox:power
network_mode: service:app
command: sleep infinity
cap_add:
- NET_ADMIN
- NET_RAW
tty: true
Access:
# Standard
docker compose exec debugbox bash -l
# Power with capabilities
docker compose exec debugbox-power bash -l
→ Which variant to use? | Kubernetes Usage | Real-world Examples | Troubleshooting