Cloud connectivity Containerisation Containers DevOps Docker

How to Ping on a container with No ping utility?

Ever opened a shell or sshed into a container and it does not have the ping binary:

bash: ping: command not found

Install Ping

Use the package manager of the base image

apt update
apt install iputils-ping

Then test:

> ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=51 time=1.56 ms


  • container does not have ping or nc
  • alternative to ping on container