docker容器命令安装

ip命令

# ubuntu
apt-get install -y iproute2
# centos
yum -y install initscripts

netstat命令

# centos
yum -y install net-tools
# ubuntu
apt-get -y install net-tools

md5sum

#Debian
apt-get install coreutils
 
#Ubuntu
apt-get install coreutils
 
#Alpine
apk add coreutils
 
#Arch Linux
pacman -S coreutils
 
#Kali Linux
apt-get install coreutils
 
#CentOS
yum install coreutils
 
#Fedora
dnf install coreutils
 
#OS X
brew install md5sha1sum
 
#Raspbian
apt-get install coreutils
 
#Docker
docker run cmd.cat/md5sum md5sum

ssh命令

# centos
 yum install openssh-server openssh-clients -y

# uuntu
apt-get install openssh-server openssh-client -y

 gcc/g++命令 

centos
yum -y install gcc gcc-c++
ubuntu
apt-get install build-essential -y

ps命令

# debian
apt install procps -y
# centos
yum install procps-ng -y

  

 

 

posted @ 2022-03-01 11:53  NAVYSUMMER  阅读(92)  评论(0)    收藏  举报
交流群 编程书籍