Skip to content

adriananeci/debug_container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super-Linter

Debug docker container

Contains a lot of debugging tools for production. Based on golang:alpine.

  • Build/code: build-base git bash bash-completion ncurses vim tmux jq
  • Network: bind-tools iputils tcpdump curl nmap tcpflow iftop net-tools mtr netcat-openbsd bridge-utils iperf ngrep openldap-clients dnstrace
  • Certificates: ca-certificates openssl
  • Processes/IO: htop atop strace iotop dstat sysstat ltrace ncdu logrotate hdparm pciutils psmisc tree pv

Because of docker retention policy, a github workflow is running on 1st of each month to build and publish a new docker image.

Build and test

Use make targets for building, pushing and testing

Builds the local Docker container for development

make build

Test docker image locally

make test

Local cleanup

make clean

Push Docker image to docker.io

For pushing the docker image to DockerHub you can use the CI git actions workflow or

make push

DNS benchmark

use dnstrace which has auto-complete and for available options see https://github.com/redsift/dnstrace

example:

dnstrace -n 10 -c 10 --server 8.8.8.8 --recurse redsift.io

Attach to an existing container

docker run --rm -ti --net container:<container-id> aaneci/debug

Use tmux inside tmux

Just double press <ctrl>+b to use the inner tmux