- Docker: Mount external drive to a volume and attach it to a container
docker volume create --name fred --opt /media/pi/mydrive
docker run -v fred:/var/www/html/ <container>
- Docker: Mount directory from one container to another (specific dir)
Mount using
--volumes-from:
docker run -v /data/myfolder --name container1 image-name-1