minidebug
MiniDebug Overview
Use the MiniDebug image to debug and troubleshoot Minimus containers. This image is a dev toolkit that provides common support and diagnostic tools for Minimus images. It contains a host of useful tools including grype, skopeo, apk-tools, nmap, tcpdump, curl, and more.
Try It Out
To take the Minimus MiniDebug image for a test run, we will create a testing network with a mock web server, database, traffic generator, and faulty service. Then we will run MiniDebug on our network to diagnose it.
As a first step, create a custom network for our demo:
docker network create minimus-networkNext, run a mock web server:
docker run -d --rm \
--name web-container \
--network minimus-network \
busybox:latest \
sh -c "while true; do echo 'DB Query Response: SELECT * FROM users...'; nc -l -p 5432; done"Create a mock database:
docker run -d --rm \
--name db-container \
--network minimus-network \
busybox:latest sh -c "while true; do echo 'DB Query Response: SELECT * FROM users...' | nc -l -p 5432; done"Create a mock service with artificial delays and packet loss:
docker run -d --rm \
--name problem-service \
--network minimus-network \
busybox:latest sh -c "while true; do \
if [ \$((RANDOM % 3)) -eq 0 ]; then \
sleep 2; echo 'Slow response from problem-service'; \
else \
echo 'Fast response from problem-service'; \
fi | nc -l -p 9090; \
done"Create a traffic generator:
docker run -d --rm \
--name traffic-gen \
--network minimus-network \
busybox:latest sh -c "while true; do \
nc web-container 8080 < /dev/null; \
nc db-container 5432 < /dev/null; \
nc problem-service 9090 < /dev/null; \
sleep \$((RANDOM % 5 + 1)); \
done"Now we can start MiniDebug and inspect what’s going on in this network we created:
docker run -it \
--name minidebug \
--network minimus-network \
reg.mini.dev/minidebugThe MiniDebug container will update both ClamAV and Grype data files upon startup. This may take a minute or so. (If the update fails, the container will still start but will warn about the update failure.)
Updating security databases...
ClamAV update process started at ...
daily database available for download (remote version: 27673)
...
✔ Vulnerability DB [updated]
Vulnerability database updated to latest version!The container will enter in bash. You can ping the containers:
fping web-container problem-service db-containerYou should expect output such as:
web-container is alive
problem-service is alive
db-container is aliveAs another example, run an nmap scan:
nmap -p 8080,5432,9090 problem-serviceYou should expect output such as:
Nmap scan report for problem-service (172.19.0.2)
Host is up (0.000019s latency).
rDNS record for 172.19.0.2: problem-service.minimus-network
PORT STATE SERVICE
5432/tcp closed postgresql
8080/tcp closed http-proxy
9090/tcp open zeus-admin
MAC Address: F6:A6:49:94:16:5C (Unknown)You can also track traffic irregularity:
fping -D -c 20 -i 500 problem-serviceYou can also print network traffic with Tcpdump:
tcpdump -i eth0 & ping -c 1 google.comYou should get output such as:
[1] 27
PING google.com (142.250.152.139): 56 data bytes
64 bytes from 142.250.152.139: seq=0 ttl=114 time=4.845 ms
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 4.845/4.845/4.845 ms
bash-5.2# tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytesTechnical Considerations
The MiniDebug image is a proprietary image provided by Minimus to help debug and troubleshoot Docker containers:
- Runs as root by default to simplify testing and support raw socket access and system/process access.
- Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.