Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Toolbox Docker Image

Generic Debian container with common debugging and networking tools. Useful as a sidecar or debug container.

Usage

# Run interactively
docker run --rm -it timjdfletcher/toolbox bash

# Debug another container's network
docker run --rm -it \
  --net=container:<container_id> \
  timjdfletcher/toolbox

# Debug with full access to another container
docker run --rm -it \
  --pid=container:<container_id> \
  --net=container:<container_id> \
  -v /tmp/dump:/dump \
  timjdfletcher/toolbox

# Kubernetes debug container
kubectl debug -it <pod> --image=timjdfletcher/toolbox -- bash

Included Tools

  • curl — HTTP client
  • dnsutils — dig, nslookup
  • jq — JSON processor
  • less — Pager
  • lsof — List open files
  • net-tools — netstat, ifconfig
  • procps — ps, top, free
  • strace — System call tracer
  • tcpdump — Packet capture
  • vim — Text editor

Customization

Build with different tools:

docker build \
  --build-arg TOOLS="curl wget htop strace" \
  -t my-toolbox .

Build

./run build

Release

git tag toolbox-v<version>
./run release