Docker sq
Docker Fundamentals - Getting Started

Data in Containers

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Data in Containers

The nginx documentation can be found at hub.docker.com//nginx and will be helpful in hosting simple static content.

The -v or --volume flag lets you mount local file directories into the nginx directory using the command docker container run -p 80:80 --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d nginx.

You can view the results in your browser by viewing localhost.

You need to be a Pro subscriber to see this content

 

I finished! On to the next chapter