Docker - Ubuntu - bash: ping: command not found

前端 未结 7 2176
走了就别回头了
走了就别回头了 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 08:02

    Alternatively you can use a Docker image which already has ping installed, e.g. busybox:

    docker run --rm busybox ping SERVER_NAME -c 2
    

提交回复
热议问题