docker下centos安装ping命令

问题:从docker hub上拉取到则镜像centos:6.7在执行ping命令报错

[root@dcd9947346b3 /]# ping
bash: ping: command not found

解决方法:yum 安装ping

yum install -y iputils

补充:ubuntu安装ping命令 apt-get install inetutils-ping

转自: https://blog.csdn.net/king_gun/article/details/78423115

猜你喜欢

转载自blog.csdn.net/Man_In_The_Night/article/details/86139161
今日推荐