Docker Run

Docker run command creates a container from an image and runs it. Here we run the nginx Docker image. -d = detach after starting the container. -p 80:80 = port 80 on host machine is mapped to port 80 inside container. Now you will be able to access Nginx server by visiting IP of host … Read more