Nginx-Test 8080 80: Docker Image Pull Nginx Docker Container Run - D - Name Nginx-Test - P 8080:80 Nginx
Nginx-Test 8080 80: Docker Image Pull Nginx Docker Container Run - D - Name Nginx-Test - P 8080:80 Nginx
The first command pulls the NGINX container image from the Docker Hub, and the second
command launches our NGINX container, naming it nginx-test mapping port 8080 on
your machine to port 80 on the container.
You can check that the container is running using the following command:
docker container ps
Opening your browser and going to http://localhost:80/ should show you the default
Welcome to NGINX page.
Once you have tested launching a container you can tidy up afterwards by running the
following commands to stop and remove the container and then delete the image:
A Docker Registry could be hosted by a third party as a public or private registry, such as
one of the following registries: