February 2020
Intermediate to advanced
404 pages
8h 42m
English
Getting a container that has preinstalled Nginx has two benefits:
To get the latest Nginx image and start a container, run the following command:
> docker run --name nginxServer -d -p 80:80 nginx
This pulls the nginx image from Docker Hub (make sure you are connected to the internet). If the image is already pulled, it reuses that. Then, it starts a container with the name of nginxServer and serves it on port 80. Now, visit http://localhost from your browser and you will see the Nginx home page.
However, the preceding command is not useful for configuring Nginx after starting the container. We have to mount ...
Read now
Unlock full access