Pull the Nginx Image and Run the Container

Versions

OS: MacOS (intel chip) Docker version: 20.10.12

Official image of Nginx

Nginx distribute its official Docker image on Docker Hub. https://hub.docker.com/_/nginx

How to

  1. Pull Nginx Docker image
  2. Run the container

1. Pull Nginx Docker image

① Pull the latest of Nginx Docker image

docker pull nginx

② Confirm you successfully pulled the image

docker images

2. Run the container

① Run the container Listen Port: 3000, Forward to: 80

docker run -p 3000:80 nginx

② Confirm you successfully ran the container Access to http://localhost:3000/

Thank you

I hope this helps. Thank you for reading.