A simple and small Docker image with some handy networking tools installed.
Reference:
- https://github.com/pmietlicki/docker-nettools
- https://hub.docker.com/r/pmietlicki/nettools
- https://hub.docker.com/r/travelping/nettools
Repository in Docker Hub:
Attention!!! This image has binaries and has been compiled to support the x86_64 processor only
Tools:
- vim
- nano
- elinks
- net-tools
- conntrack-tools
- coreutils
- curl
- wget
- drill
- iperf3
- iproute2
- iptables
- iputils
- ip6tables
- keepalived
- nftables
- socat
- netcat-openbsd
- bind-tools
- ethtool
- mtr
- tcpdump
- lshw
- nmap
Please see the Dockerfile for a complete list of tools.
In Docker container:
docker run -it --rm --name nettools aeciopires/nettools:1.0.0 bash
In Kubernetes cluster:
Access the Kubernetes cluster and run this command.
kubectl run --rm -it nettools-$(< /dev/urandom tr -dc a-z-0-9 | head -c${1:-4}) --image=aeciopires/nettools:1.0.0 -n default -- bash
Creating alias nettools
with this command:
echo "alias nettools='kubectl run --rm -it nettools-$(< /dev/urandom tr -dc a-z-0-9 | head -c${1:-4}) --image=aeciopires/nettools:1.0.0 -n default -- bash'" >> $HOME/.bashrc
source $HOME/.bashrc
nettools
- See the REQUIREMENTS.md file.
- See the CONTRIBUTING.md file.
-
Change the
Dockerfile
. -
Change the value of the
VERSION
variable innettools/Makefile
file. -
Commands to build the image:
cd nettools
make image
Commands to run a container:
cd nettools
make container
-
Create or access your account in Docker Hub and create the repository for custom image. Example: https://hub.docker.com/r/DOCKER_HUB_ACCOUNT/nettools
-
Commands to publish the image:
cd nettools
make publish
- See the LICENSE file.