+
Skip to content

aeciopires/nettools

Repository files navigation

nettools

About

A simple and small Docker image with some handy networking tools installed.

Reference:

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.

Run this image

In Docker container

docker run -it --rm --name nettools aeciopires/nettools:2.1.0

In Kubernetes cluster

CLI

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:2.1.0 -n NAMESPACE -- /bin/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:2.1.0 -n NAMESPACE -- /bin/bash'" >> $HOME/.bashrc
source $HOME/.bashrc

nettools

Manifest

Access the Kubernetes cluster and run this command.

kubectl apply -f nettools.yaml -n NAMESPACE

kubectl exec -i -t deploy/nettools -n NAMESPACE -- bash

Contributing

Updating and publishing this image

  • 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.

  • Change the Dockerfile.

  • Change the value of the VERSION variable in nettools/Makefile file.

  • Commands to build the image:

cd nettools

make image

Creating container

Commands to run a container:

cd nettools

make container

Maintainers

License

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载