首页 > 技术文章 > Ubuntu Docker bash: ifconfig: command not found

scott-j 2020-09-25 11:28 原文

$ 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

 

推荐阅读