Skip to content

ibtisam-iq/debugbox

DebugBox

Status & Quality CI Documentation Latest Release License: MIT

Container Registries Docker Pulls GitHub Container Registry Multi-Arch

Security & Platform Trivy Scanning Powered by Alpine Kubernetes Ready

Community Contributor Covenant GitHub Stars GitHub Issues

Docs: https://debugbox.ibtisam-iq.com


The Problem

You need to debug a pod. You run kubectl debug my-pod --image=netshoot and wait for 201 MB to download.

On an edge cluster? Mobile network? Restricted bandwidth? Every MB costs time.

Worse still: you just need to check DNS. You don't need tcpdump, tshark, routing tools. But netshoot is all-or-nothing.


The Solution

DebugBox is a Kubernetes-native debugging container that lets you choose exactly what you needβ€”no more, no less.

Optimized for Kubernetes:

  • kubectl debug ephemeral containers β€” launch in seconds
  • kubectx/kubens context switching β€” built-in cluster awareness
  • Shell helpers pre-loaded β€” json() and yaml() functions ready to use
  • Pinned tool versions β€” deterministic, repeatable builds

Three sizes. Pick one:

  • LITE (14.36 MB): DNS & connectivity
  • BALANCED (46.16 MB): Daily Kubernetes debugging ⭐
  • POWER (104.45 MB): Packet analysis & forensics

No bloat. No waiting. Right-sized for your job.


Choosing Your Variant

Pick the right size for your task:

                Need to analyze packets?
                         β”‚
                    β”Œβ”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”
                    β”‚          β”‚
                   NO         YES ──────► POWER (104.45 MB)
                    β”‚                    (tshark, iptables, bird)
                    β”‚
           Need tcpdump or K8s tools?
                    β”‚
                β”Œβ”€β”€β”€β”΄β”€β”€β”€β”€β”
                β”‚        β”‚
               NO       YES ─────────► BALANCED (46.16 MB) ⭐
                β”‚                     (tcpdump, kubectx/ns)
                β”‚
               YES ────────────────► LITE (14.36 MB)
                                    (minimal, fast)

Quick Start

Kubernetes (Recommended)

# Debug a running pod (default: balanced variant)
kubectl debug my-pod -it --image=ghcr.io/ibtisam-iq/debugbox

# Use lite variant (minimal, fastest pull)
kubectl debug my-pod -it --image=ghcr.io/ibtisam-iq/debugbox:lite

# Use power variant (full forensics toolkit)
kubectl debug my-pod -it --image=ghcr.io/ibtisam-iq/debugbox:power

# Standalone debugging session
kubectl run debug --rm -it --image=ghcr.io/ibtisam-iq/debugbox --restart=Never

Docker

# Interactive session (latest balanced variant)
docker run -it ghcr.io/ibtisam-iq/debugbox

# Lite variant
docker run -it ghcr.io/ibtisam-iq/debugbox:lite

# Power variant
docker run -it ghcr.io/ibtisam-iq/debugbox:power

Why DebugBox?

πŸš€ 48% Smaller Than netshoot

Image Compressed Size
DebugBox lite 14.36 MB
DebugBox balanced 46.16 MB
DebugBox power 104.45 MB
netshoot v0.15 201.67 MB

DebugBox power is 97 MB smaller than netshoot (48% reduction). DebugBox lite is 14Γ— smaller than netshoot.

On resource-constrained clusters (edge, IoT, Kubernetes on laptops), every MB counts. See detailed bandwidth analysis β†’

πŸ”’ Secure by Default

  • Trivy scans block HIGH/CRITICAL on every release
  • Alpine Linux base (minimal attack surface)
  • No unnecessary packages
  • Multi-architecture support (amd64, arm64)

Security policy β†’


Features by Variant

What tools are included in each variant? β†’ Complete tool list

Category Tools Lite Balanced Power
Networking Basics curl, netcat, iproute2, iputils, bind-tools (dig, nslookup) βœ“ βœ“ βœ“
Data Parsing jq, yq βœ“ βœ“ βœ“
Shell bash, bash-completion, less β€” βœ“ βœ“
Editors vi / vim / nano vi βœ“ βœ“
Filesystem git, file, tar, gzip β€” βœ“ βœ“
System htop, strace, lsof, procps, psmisc β€” βœ“ βœ“
System Deep ltrace β€” β€” βœ“
Networking tcpdump, socat, nmap, mtr, iperf3, ethtool, iftop β€” βœ“ βœ“
Packet Analysis tshark, ngrep, tcptraceroute, fping, speedtest-cli, nmap-nping β€” β€” βœ“
TLS/SSL openssl β€” β€” βœ“
Routing iptables, nftables, conntrack-tools, bird, bridge-utils β€” β€” βœ“
Kubernetes kubectx, kubens β€” βœ“ βœ“
Scripting Python 3 + pip3 β€” β€” βœ“
Helpers json(), yaml(), ll() βœ“ βœ“ βœ“
Network Helpers ports, connections, routes, k8s-info β€” βœ“ βœ“
Packet Helpers sniff(), sniff-http(), sniff-dns(), cert-check(), conntrack-watch() β€” β€” βœ“

β†’ Detailed variant breakdown


Comparison to Alternatives

Feature DebugBox netshoot busybox Alpine
Smallest variant 14.36 MB 201.67 MB 1.5 MB 7.6 MB
Variants βœ“ 3 sizes βœ— one size βœ— one size βœ— one size
Multi-arch βœ“ amd64+arm64 βœ“ amd64+arm64 βœ“ amd64+arm64 βœ“ amd64+arm64
Pinned tools βœ“ deterministic βœ— floating βœ— minimal βœ— minimal
Kubernetes helpers βœ“ kubectx/ns βœ— none βœ— none βœ— none
Security scanned βœ“ Trivy βœ— manual βœ— manual βœ— manual

Why DebugBox wins:

  • βœ… Smaller when you need it (14.36 MB vs 201.67 MB)
  • βœ… Larger when you need it (104.45 MB for SRE workflows)
  • βœ… Kubernetes-first design (kubectx/kubens built-in)
  • βœ… Predictable (pinned tools, repeatable builds)

Use Cases

Ephemeral debugging with kubectl debug:

  • βœ… One-off troubleshooting sessions
  • βœ… Resource-constrained environments (edge, IoT, bandwidth-limited)
  • βœ… Multi-cluster operations (kubectx/kubens included)
  • βœ… Incident response (fast pull, ready to go)
  • βœ… Learning Kubernetes networking
  • βœ… SRE forensics workflows (power variant)

Not for:

  • ❌ Persistent sidecars β€” use for ephemeral debugging only
  • ❌ Production workloads β€” runs as root, for debugging only
  • ❌ Kubernetes control plane access β€” no kubectl, no kube-proxy config

Image Tags & Registries

Available Images

DebugBox is published to two registries with 20 tags per release:

Registry URL
GHCR (Recommended) ghcr.io/ibtisam-iq/debugbox
Docker Hub docker.io/mibtisam/debugbox

Tag Strategy

All three variants are in one repository with variant-based tags:

Primary Tags (Variant Discovery)

debugbox:lite              # Latest lite variant
debugbox:balanced          # Latest balanced variant (default)
debugbox:power             # Latest power variant

Floating Version Tags (Latest per Variant)

debugbox:lite-latest       # Latest lite
debugbox:balanced-latest   # Latest balanced
debugbox:power-latest      # Latest power

Pinned Version Tags (Immutable, for Production)

debugbox:lite-1.0.0        # Lite v1.0.0
debugbox:balanced-1.0.0    # Balanced v1.0.0
debugbox:power-1.0.0       # Power v1.0.0

Default Aliases (Convenience)

debugbox:latest            # Alias to balanced-latest (default)
debugbox:1.0.0             # Alias to balanced-1.0.0 (short form)

Production: Always pin specific versions See Image Tags


Documentation

Full docs: https://debugbox.ibtisam-iq.com

Essential guides:


FAQ

Q: Can I use DebugBox in production? A: No. DebugBox runs as root and is designed for ephemeral debugging containers only. Use kubectl debug or temporary pods.

Q: What if I need a tool not in DebugBox? A: You can extend DebugBox by creating your own Dockerfile or submitting a feature request. See Local Development.

Q: How do I pin a specific version in production? A: Use the full tag: ghcr.io/ibtisam-iq/debugbox:1.0.0 (balanced) or ghcr.io/ibtisam-iq/debugbox:lite-1.0.0 (lite). See Image Tags for full strategy.

Q: Does DebugBox work on Kubernetes 1.18+? A: Yes, works on Kubernetes 1.18+. Best experience with 1.20+ (has kubectl debug support).

Q: Can I use DebugBox outside Kubernetes? A: Absolutely! docker run -it ghcr.io/ibtisam-iq/debugbox works perfectly for local debugging.

More questions? β†’ Full Troubleshooting Guide


Local Development

git clone https://github.com/ibtisam-iq/debugbox.git
cd debugbox

make build-all     # All variants
make test-all      # Smoke tests
make scan          # Trivy scan

See Local Development for detailed setup.


Contributing

Found a bug? Have an idea? We welcome contributions!

β†’ Contributing Guidelines


License

MIT License β€” Free to use, modify, and distribute.


Changelog

v1.0.0 (Feb 2026)

  • Public release
  • 3 variants: lite, balanced, power
  • Multi-arch support (amd64, arm64)
  • Kubernetes-optimized with kubectx/kubens
  • SRE-grade routing and analysis tools in power variant

β†’ Full changelog


Support & Community


Built with ❀️ for Kubernetes debugging by @ibtisam-iq

Faster pulls. Faster debugging. Right-sized containers.

About

Multi-variant Docker debugging toolkit for Kubernetes and cloud-native environments.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors