udemy-docker-mastery icon indicating copy to clipboard operation
udemy-docker-mastery copied to clipboard

NGINX no longer contains ping

Open BretFisher opened this issue 2 years ago • 0 comments

A change in the official nginx image https://hub.docker.com/_/nginx (nginx or nginx:latest ) removes ping, but I use it in the next few videos to test connectivity, so you might get an error about "ping not found". I'm working on updates to those videos but until I can get them processed and uploaded, just do this:

Anywhere I do a docker container run nginx , where nginx is the image you should use, replace that with nginx:alpine, which still has ping command in it.

There are other ways to solve this, including adding the ping util with apt-get, making your own image, etc. More info in this Q&A answer.

Original Q&A

BretFisher avatar Feb 23 '23 17:02 BretFisher