Rocky linux with many tool
518
A lightweight, Rocky Linux 10 based Docker image packed with essential network, diagnostic, and troubleshooting tools. This image serves as a "Swiss Army knife" for system administrators and DevOps engineers who need to debug network issues, test endpoints, process APIs, or query services without installing local packages.
FROM rockylinux/rockylinux:10
RUN dnf -y update && \
dnf -y install \
openldap-clients bind-utils nmap httpd-tools wget openssh-clients iproute net-tools \
curl jq tcpdump mtr iperf3 nmap-ncat openssl socat && \
dnf clean all
Here is a quick overview of the main packages installed in this image and the specific command-line tools they provide:
openldap-clients: ldapsearch, ldapmodify, ldapwhoamibind-utils: dig, nslookup, hostnmap & nmap-ncat: nmap, nc (Netcat)httpd-tools: ab (Apache Bench), htpasswdwget & curl: wget, curljq: jq (Command-line JSON processor)openssh-clients: ssh, scp, sftp, ssh-keyscaniproute & net-tools: ip, ss, netstat, ifconfig, arp, routetcpdump, mtr, iperf3openssl, socatRun an interactive bash shell inside the container:
docker run -it --rm lordraw/rockytoolkit:2.0 bash
cURL & JQ: Fetch JSON from an API and parse a specific field (e.g., repository description).
docker run --rm lordraw/rockytoolkit:2.0 sh -c 'curl -s https://api.github.com/repos/rocky-linux/rocky | jq .description'
Wget: Download a file to your host machine (mounting the current directory).
docker run --rm -v $PWD:/data -w /data lordraw/rockytoolkit:2.0 wget https://example.com/backup.tar.gz
Apache Bench (ab): Perform HTTP load testing (1000 requests, 50 concurrent).
docker run --rm lordraw/rockytoolkit:2.0 ab -n 1000 -c 50 https://example.com/
Dig: Query DNS MX records for a specific domain.
docker run --rm lordraw/rockytoolkit:2.0 dig example.com MX
Nslookup: Alternative single-shot DNS query tool.
docker run --rm lordraw/rockytoolkit:2.0 nslookup example.com
Port Scan (Nmap): Check specific ports on a target host.
docker run --rm lordraw/rockytoolkit:2.0 nmap -p 22,80,443 example.com
Port Check (Netcat / nc): Quickly verify if a single TCP port is open.
docker run --rm lordraw/rockytoolkit:2.0 nc -zv example.com 443
SSL Certificate Check (OpenSSL): Check the expiration dates of a remote SSL certificate.
docker run --rm lordraw/rockytoolkit:2.0 sh -c 'echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates'
LDAP Search: Perform an anonymous query to test directory connectivity.
docker run --rm lordraw/rockytoolkit:2.0 ldapsearch -x -H ldap://ldap.example.com -b "dc=example,dc=com"
SSH Keyscan: Retrieve a remote server's public key (useful for CI/CD known_hosts).
docker run --rm lordraw/rockytoolkit:2.0 ssh-keyscan github.com
SCP (Secure Copy): Copy a file from a remote server to your local host.
docker run --rm -v $PWD:/data -w /data lordraw/rockytoolkit:2.0 scp [email protected]:/remote/path/file.txt .
Note: Add --network host to diagnose the physical host's network rather than the isolated Docker network.
MTR: Combined ping and traceroute to diagnose packet loss and latency.
docker run -it --rm lordraw/rockytoolkit:2.0 mtr 8.8.8.8
TCPDump: Capture and display packets traveling through a specific interface (e.g., eth0).
docker run --rm --network host lordraw/rockytoolkit:2.0 tcpdump -i eth0 -nn -c 100
IP Address (iproute): List all network interfaces and IP addresses.
docker run --rm --network host lordraw/rockytoolkit:2.0 ip a
Socket Statistics (iproute): View listening TCP/UDP ports.
docker run --rm --network host lordraw/rockytoolkit:2.0 ss -tuln
Netstat (net-tools): Legacy tool to display routing tables.
docker run --rm --network host lordraw/rockytoolkit:2.0 netstat -rn
Content type
Image
Digest
sha256:fbef12c09…
Size
143.5 MB
Last updated
9 days ago
docker pull lordraw/rockytoolkit