Docker image that includes networking testing tools such as net-tools, netcat, dns-utils, and so on.
8.0K
https://github.com/sunggun-yu/docker-net-test
A lightweight Alpine-based Docker image packed with network diagnostic and testing tools. Perfect for troubleshooting network connectivity issues in Kubernetes environments.
| Category | Tools |
|---|---|
| DNS Tools | bind-tools (dig, nslookup), drill |
| Connection Testing | busybox-extras (telnet), ping, netcat-openbsd, nmap |
| Path Analysis | traceroute, mtr, tcptraceroute |
| Traffic Analysis | tcpdump |
| HTTP Tools | curl, wget, wrk, apache2-utils (ab) |
| Network Configuration | net-tools, iproute2, iptables |
| Network Calculation | ipcalc |
| SSL/TLS | openssl, ca-certificates |
| Data Processing | jq, yq |
| File Transfer | rsync |
| Text Editors | vim, nano |
From Docker Hub:
docker pull sunggun/net-test:latest
From GitHub Container Registry:
docker pull ghcr.io/sunggun-yu/net-test:latest
docker run -it --rm sunggun/net-test
For full network capabilities:
docker run -it --rm --cap-add=NET_ADMIN --cap-add=NET_RAW sunggun/net-test
Create a debugging pod:
apiVersion: v1
kind: Pod
metadata:
name: network-debugger
spec:
containers:
- name: net-test
image: sunggun/net-test:latest
command: ["sleep", "infinity"]
securityContext:
capabilities:
add:
- NET_RAW
- NET_ADMIN
Or use it directly for quick troubleshooting:
kubectl run net-debugger --rm -it --image=sunggun/net-test -- bash
# Initialize Docker buildx
docker buildx create --use
# Build the image for Linux AMD
docker buildx build --platform linux/amd64 -t sunggun/net-test:latest .
# Push the image for Linux AMD
docker buildx build --platform linux/amd64 -t sunggun/net-test:latest --push .
# Build the image for macOS ARM
docker buildx build --platform linux/arm64/v8 -t sunggun/net-test:latest .
# Push the image for macOS ARM
docker buildx build --platform linux/arm64/v8 -t sunggun/net-test:latest --push .
dig example.com
drill example.com
ping -c 3 8.8.8.8
tcptraceroute google.com 443
mtr --report --count 10 example.com
nmap -p 80,443,8080 service-name.namespace.svc.cluster.local
curl -v https://example.com
wrk -t2 -c10 -d30s http://service-name:8080/health
openssl s_client -connect example.com:443 </dev/null | openssl x509 -noout -text
tcpdump -i any port 80 -n
ipcalc 10.0.0.0/16
latest: Latest stable buildvX.Y.Z: Specific version (e.g., v1.0.0)vX.Y: Minor version (e.g., v1.0)vX: Major version (e.g., v1)This image runs as the nobody user (UID 65534) by default for improved security. Some networking tools may require additional capabilities when running in containers.
MIT License - See LICENSE for details.
Content type
Image
Digest
sha256:49c9998b2…
Size
44.2 MB
Last updated
about 1 year ago
docker pull sunggun/net-test