#27 Docker Tutorial | Docker Volume

Published: 08 September 2020
on channel: One Minute Notes
119
10

See complete series on Docker here:
   • Playlist  

Note: To attach multiple volumes to container use -v/--mount flag more than once

Volumes are stored in a part of the host filesystem which is managed by Docker (/var/lib/docker/volumes/ on Linux). Non-Docker processes should not modify this part of the filesystem. Volumes are the best way to persist data in Docker

Sharing with 1 or more Containers: allowed

Commands:
$ docker run -d \
--name devtest \
--mount source=myvol2,target=/my/path \
nginx:latest

$ docker run -d \
--name devtest \
-v myvol2:/app \
nginx:latest

Reference: https://docs.docker.com/storage/volumes/
-----------------
To Support Us
Like, Share, Subscribe


Watch video #27 Docker Tutorial | Docker Volume online without registration, duration hours minute second in high quality. This video was added by user One Minute Notes 08 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 119 once and liked it 10 people.