Outline
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.