NOTE: This repo contains only the documentation for the private BoltsOps repo code. Original file: https://github.com/boltops-learn/docker-volumes/blob/master/README.md The docs are publish so they are available for interested subscribers. For access to the source code, you can become a BoltOps subscriber. See: https://learn.boltops.com
This tutorial goes through Docker Volumes and how to use them in 2 ways:
- -v option
- --mount option
docker run -v $(pwd)/data:/data -P --rm -d httpd
docker run -v $(pwd)/htdocs:/usr/local/apache2/htdocs -P --rm -d httpd
docker run --mount source=htdocs,target=/usr/local/apache2/htdocs -P --rm -d httpd
Note: Premium video content requires a subscription.