Sign inSign up

mattiasholmberg/debugbox

By mattiasholmberg

•Updated 4 months ago

Tooling stack for debug networking and different sql, messaging etc.

Image
Networking
Developer tools
Monitoring & observability
0

558

mattiasholmberg/debugbox repository overview

⁠Debugbox

Portable Docker toolbox for debugging databases, APIs, DNS, Kubernetes, and cloud access from a single container.

⁠Included tools

  • python3.13
  • mysql client
  • psql
  • curl
  • dig
  • nslookup
  • kcat
  • mongosh
  • kubectl
  • redis-cli
  • subctl
  • aws
  • gcloud
  • oci
  • jq
  • yq
  • ping
  • nc
  • telnet
  • traceroute
  • tcpdump
  • openssl

⁠Notes

  • The Debian MySQL client package is used here for reliability in a slim base image. If you need Oracle's exact MySQL 8 client packaging, the image can be adjusted to use the Oracle apt repository instead.

⁠Start an interactive shell

docker compose run --rm debugbox

⁠Run a one-off command

docker compose run --rm debugbox kubectl version --client
docker compose run --rm debugbox aws sts get-caller-identity
docker compose run --rm debugbox dig example.com

⁠Mounted credentials and config

The compose file mounts common host config directories read-only when they exist:

  • ~/.aws
  • ~/.kube
  • ~/.config/gcloud

If you also want OCI config mounted, add this volume to docker-compose.yml:

- ${HOME}/.oci:/root/.oci:ro

⁠Run as a pod in Kubernetes

Launch an interactive shell directly in your cluster in the service namespace:

kubectl -n service run debugbox \
  --image=mattiasholmberg/debugbox:latest \
  --restart=Never --rm -it -- bash

Run a one-off command and exit:

kubectl -n service run debugbox \
  --image=mattiasholmberg/debugbox:latest \
  --restart=Never --rm -it -- dig example.com

The --restart=Never --rm flags ensure the pod is deleted automatically when the session ends.

⁠Typical examples

kubectl get pods -A
psql postgresql://user:pass@host:5432/dbname
mysql -h host -u user -p
mongosh "mongodb://user:pass@host:27017/admin"
redis-cli -h host -p 6379
kcat -b broker:9092 -L
subctl show all

Tag summary

Content type

Image

Digest

sha256:c4070e148…

Size

458.1 MB

Last updated

4 months ago

docker pull mattiasholmberg/debugbox