今天在使用docker安装ubuntu时,发现ubuntu里没有ifconfig这个命令,那么安装一个网络工具包就可以解决:

apt-get install net-tools