Get host IP address and ping the host to infinity
1.5K
Example command: docker run -it --rm --name ping -e HOST=google.com markokole/ping
Example output: HOST:
google.com
IP address:
216.58.211.142
PING google.com (216.58.211.142) 56(84) bytes of data.
64 bytes from 216.58.211.142 (216.58.211.142): icmp_seq=1 ttl=37 time=20.9 ms
64 bytes from 216.58.211.142 (216.58.211.142): icmp_seq=2 ttl=37 time=20.9 ms
64 bytes from 216.58.211.142 (216.58.211.142): icmp_seq=3 ttl=37 time=22.4 ms
64 bytes from 216.58.211.142 (216.58.211.142): icmp_seq=4 ttl=37 time=20.7 ms
64 bytes from 216.58.211.142 (216.58.211.142): icmp_seq=5 ttl=37 time=30.3 ms
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4008ms
rtt min/avg/max/mdev = 20.663/23.010/30.278/3.685 ms
Content type
Image
Digest
Size
9.1 MB
Last updated
over 6 years ago
docker pull markokole/ping