#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


On this page of the site you can watch the video online #27 Docker Tutorial | Docker Volume with a duration of hours minute second in good quality, which was uploaded by the user One Minute Notes 08 September 2020, share the link with friends and acquaintances, this video has already been watched 119 times on youtube and it was liked by 10 viewers. Enjoy your viewing!