刚创建的docker中没有 ifconfig、netstat 命令,可以安装 net-tools 包就行。 转载于:https://www.cnblogs.com/chengtai/p/6617875.html