docker容器ubuntu系统无ping和ifconfig命令

这是因为新创建的容器中没有安装ping和ifconfig相关工具包。需要自行安装后才能使用。

首先更新源
apt-get update

安装ping工具包
apt install iputils-ping

安装ifconfig工具包
apt install net-tools

完!

猜你喜欢

转载自blog.csdn.net/hechaojie_com/article/details/83622631