ubuntu的docker镜像中安装ifconfig和ping命令

缺省的镜像系统中 ifconfig,ping 是没有安装的。需要自己安装

apt-get update

apt-get install net-tools    #安装ifconfig命令

apt-get install iputils-ping    #安装ping命令
原文地址:https://www.cnblogs.com/kpwong/p/13812877.html