Ubuntu Docker bash: ifconfig: command not found

$ sudo docker exec -it a5326cbabc6c /bin/bash

root@a5326cbabc6c:/# ifconfig

bash: ifconfig: command not found

root@a5326cbabc6c:/# ping

bash: ping: command not found

 

解决方法:

apt-get update

apt install iputils-ping

apt install net-tools

 

posted @ 2020-09-25 11:28  scott_j  阅读(340)  评论(0)    收藏  举报