Docker的ubuntu鏡像無ifconfig和ping命令 bash: ifconfig: command not found

https://blog.csdn.net/guizaijianchic/article/details/78137474

通過whereis ifconfig發現根本就沒有安裝這個命令,需要自己安裝

apt-get update 
apt install net-tools # ifconfig 
apt install iputils-ping # ping

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章