★ WELCOME ★

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
articles:linux:docker-reference-page [2022/02/12 16:28]
tom [Persistent Data with Docker Volumes]
articles:linux:docker-reference-page [2022/02/12 16:32] (current)
tom [Packaging & Distributing Your Own Docker Containers into Images]
Line 142: Line 142:
 docker run -v /home/myvolume/data:/var/lib/mysql/data docker run -v /home/myvolume/data:/var/lib/mysql/data
  
-# An anonymous volume (Note: I am only showing the -v flag and I don't necessarily know where the persistent storage is kept but should be /var/lib/docker/volumes).+# An anonymous volume (Note: I am only showing the -v flag and I don't necessarily know where the persistent storage is kept but should be below /var/lib/docker/volumes).
 docker run -v [container folder] docker run -v [container folder]
 docker run -v /var/lib/mysql/data docker run -v /var/lib/mysql/data
  
-# A named volume (Note: I am only showing the -v flag, again I may not know where the storage is kept but should be /var/lib/docker/volumes, plus I am able to reference it better than an anonymous volume).+# A named volume (Note: I am only showing the -v flag, again I may not know where the storage is kept but should be below /var/lib/docker/volumes, plus I am able to reference it better than an anonymous volume).
  
 </code> </code>
Line 155: Line 155:
  
 {{youtube>3c-iBn73dDE?medium&start=6120&end=8844}} {{youtube>3c-iBn73dDE?medium&start=6120&end=8844}}
- 
- 
- 
- 
-https://youtu.be/3c-iBn73dDE?t=6120 
-https://youtu.be/3c-iBn73dDE?t=8844 
Print/export