#27 Docker Tutorial | Docker Volume

Pubblicato il: 08 settembre 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online #27 Docker Tutorial | Docker Volume della durata di ore minuti seconda in buona qualità , che l'utente ha caricato One Minute Notes 08 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 119 volte e gli è piaciuto 10 spettatori. Buona visione!