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
Alternatively you can use a Docker image which already has ping installed, e.g. busybox:
docker run --rm busybox ping SERVER_NAME -c 2