Skip to content

Commit cff9376

Browse files
Update Sunlife_Notes
1 parent 95d5079 commit cff9376

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Sunlife_Notes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,18 @@
140140
6. Pull the image with following command ( you can remove the image first and then you can run below command to restore the image)
141141

142142
docker image pull localhost:5000/ubuntu
143+
144+
------------------------Storage------------------
145+
146+
docker volume create demo-vol
147+
docker volume ls //to list the volumes
148+
docker run -it --mount source=demo-vol,destination=/app -d ubuntu
149+
docker run -it --mount source=demo-vol,destination=/test --mount source=demo-vol1,destination=/test1 -d ubuntu
150+
151+
----------Docker Bind Mount Example
152+
153+
docker run -it -v /home/ubuntu/mount:/demo -d ubuntu
154+
143155

144156

145157

0 commit comments

Comments
 (0)