docker的ubuntu镜像无ifconfig和ping netstat命令

docker的ubuntu镜像无ifconfig和ping命令

或者 ubuntu系统中无ifconfig 和 ping

解决方案:

执行以下鸣冷:

apt-get update

apt-get install net-tools

apt-get install iputils-ping

Ok.再说一句,net-tools包还包含:arp, ifconfignetstatrarpnameif and route这几个工具。

原文地址:https://www.cnblogs.com/jifeng/p/9397304.html