Sign inSign up

lordraw/rockytoolkit

By lordraw

•Updated 9 days ago

Rocky linux with many tool

Image
Operating systems
0

518

lordraw/rockytoolkit repository overview

⁠🧰 Rocky Toolkit (lordraw/rockytoolkit:2.0)

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.

⁠🏗️ Build (Dockerfile)

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

⁠📦 Installed Packages & Tools

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, ldapwhoami
  • bind-utils: dig, nslookup, host
  • nmap & nmap-ncat: nmap, nc (Netcat)
  • httpd-tools: ab (Apache Bench), htpasswd
  • wget & curl: wget, curl
  • jq: jq (Command-line JSON processor)
  • openssh-clients: ssh, scp, sftp, ssh-keyscan
  • iproute & net-tools: ip, ss, netstat, ifconfig, arp, route
  • Traffic & Diagnostics: tcpdump, mtr, iperf3
  • Security & Relays: openssl, socat

⁠🚀 Quick Start

Run an interactive bash shell inside the container:

docker run -it --rm lordraw/rockytoolkit:2.0 bash

⁠🧰 Available Tools & Usage Examples

⁠🌐 Web & API Testing (curl, wget, jq)

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/
⁠🌍 DNS Resolution (bind-utils)

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
⁠🔍 Security, SSL & Port Scanning (nmap, nc, openssl)

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'
⁠📇 Directory Services (openldap-clients)

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"
⁠🔐 Secure Shell & Transfer (openssh-clients)

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 .
⁠📡 Routing, Network Diagnostics & Traffic Analysis

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

Tag summary

Content type

Image

Digest

sha256:fbef12c09…

Size

143.5 MB

Last updated

9 days ago

docker pull lordraw/rockytoolkit