Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

mount docker volume in container

sudo docker volume ls

docker volume create <VOLUME NAME>

sudo docker volume inspect <VOLUME NAME>

docker run -it -v <VOLUME NAME>:/shared-volume --name my-container-01 ubuntu




Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #mount #docker #volume #container
ADD COMMENT
Topic
Name
7+6 =