Normally when people start ubuntu container, they want to check system stutus or network environment, but original offical Ubuntu images are lack of necessary tools by default. This repository integrates essential diagnostic tools from official and most famous 3rd part repositories, and is connected to Docker Hub to provide handy images.
Access related Docker images at https://hub.docker.com/r/ma3310/ubuntu.
Image ma3310/ubuntu:20.04-tools integrates below tools are from official repository:
Package | Command | Function |
---|---|---|
curl | curl | |
iputils-ping | ping | |
procps | ps | |
mycli | mycli | MySQL/MariaDB client tool |
net-tools | ifconfig | |
netstat | ||
route |
For oh-my-zsh users on macOS, kindly add below to .zshrc after export ZSH statement as docker runs as root.
if [[ ! -d $ZSH ]]; then
export ZSH="/root/.oh-my-zsh"
fi
# Container will be automatically removed after issue exit command.
docker run --rm -it ma3310/ubuntu:20.04-tools
docker run --rm -it ma3310/ubuntu:22.04-tools
docker run --rm -it ma3310/ubuntu:22.04-devBox
# Use own zsh environment to initialize console settings.
docker run --rm -it -v ~/:/root/ ma3310/ubuntu:20.04-tools /bin/zsh
docker run --rm -it -v ~/:/root/ ma3310/ubuntu:22.04-tools /bin/zsh
# Diagnose localhost environment.
docker run --rm -it --network=host -v ~/:/root ma3310/ubuntu:20.04-tools /bin/zsh
# Diagnose docker/compose network environment.
docker run --rm -it --network=csk_default -v ~/:/root ma3310/ubuntu:20.04-tools /bin/zsh
# Pod will be automatically removed after issue exit command
kubectl run -i --tty --image=ma3310/ubuntu:20.04-tools --restart=Never --rm=true ubuntu-20.04-tools
# 根据官方镜像 ubuntu:20.04 启动容器
docker run --rm -it ubuntu:20.04
Users could also use Dockerfiles in this repository to build and release own images through docker commands.
# Login Docker Hub.
docker login
# Build / Publish / Deploy images.
docker build . -t ma3310/ubuntu:20.04-tools
docker push ma3310/ubuntu:20.04-tools
docker pull ma3310/ubuntu:20.04-tools