Docker的ubuntu镜像无ifconfig和ping命令 bash: ifconfig: command not found

https://blog.csdn.net/guizaijianchic/article/details/78137474

通过whereis ifconfig发现根本就没有安装这个命令,需要自己安装

apt-get update 
apt install net-tools # ifconfig 
apt install iputils-ping # ping

猜你喜欢

转载自blog.csdn.net/meng19910117/article/details/83449280