Docker image with some system and network tools for troubleshooting, specially in kubernetes
353
Docker image with some system and network tools for troubleshooting, specially in kubernetes
Based on ubuntu oficial image, so supported architectures of that image (including ARM64!). Simply build it for your architecture
Docker command line with host network:
# docker run -it --rm --name docker-systools --net host ponte124/docker-systools bash
Docker command line with network capabilities:
# docker run -it --rm --name docker-systools --cap-add=NET_ADMIN --cap-add=CAP_NET_RAW ponte124/docker-systools bash
Docker compose example: (first clone this repo)
# docker-compose up -d
# docker-compose exec docker-systools bash
CONTAINER# nc -zv db 3306
Kubernetes (as deployment): (first clone this repo)
# kubectl apply -f k8s-dksystools-deploy.yaml
# kubectl exec -it docker-systools bash
If you need operate with data you can mount any folder you need as a volume.
NOT YET DOCUMENTED (please, contribute with your own examples)
Test a port: Test if a port is open and listening
CONTAINER# nc -zv <server> <port>
Top net traffic:
CONTAINER# iftop -i <netinterface>
Top containers:
`# docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock ponte124/docker-systools ctop
Test JDBC connection with sqlline
CONTAINER# sqlline
sqlline> !connect jdbc:mariadb://<dbhost>:3306/mysql root <pass> org.mariadb.jdbc.Driver
0: jdbc:mariadb://mariadb:3306/mysql> !tables
0: jdbc:mariadb://mariadb:3306/mysql> select * from user;
0: jdbc:mariadb://mariadb:3306/mysql> !quit
First clone this repo. Here there's a Makefile with some variables you can export on your term before building the image.
Then:
Build:
# make build
Push: You'll need first to customize registry in Makefile and login your registry
# make push
Advices and contributions and forks and emails are welcome
Maybe you prefer using https://github.com/nicolaka/netshoot or https://github.com/Praqma/Network-MultiTool
Why I prefer my own image if these look better? Because it's based on ubuntu (I can do whatever I want, confortably)
Content type
Image
Digest
sha256:62bf37e2d…
Size
335.9 MB
Last updated
10 months ago
docker pull ponte124/docker-systools:25.12.28-x86_64