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 supports the linux/amd64, linux/arm/v6, linux/arm/v7, and linux/arm64 processor architectures
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.
-
Create a git tag and send it to the remote repository. The image will be built for various processor architectures and pushed to Docker Hub.
-
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
- The image will be built for linux/amd64 processor architecture only and pushed to Docker Hub https://hub.docker.com/r/DOCKER_HUB_ACCOUNT/nettools.
- See the LICENSE file.