Docker - Ubuntu - bash: ping: command not found

前端 未结 7 2171
走了就别回头了
走了就别回头了 2020-12-07 07:15

I\'ve got a Docker container running Ubuntu which I did as follows:

docker run -it ubuntu /bin/bash

however it doesn\'t seem to have

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 07:48

    Sometimes, the minimal installation of Linux in Docker doesn't define the path and therefore it is necessary to call ping using ....

    cd /usr/sbin
    ping 
    

提交回复
热议问题