Created
May 18, 2017 14:34
-
-
Save skelterjohn/029e745c6ccdb4876de7af3be0392f54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/tmp/vmount$ docker build -t f . | |
Sending build context to Docker daemon 2.56 kB | |
Step 1 : FROM ubuntu | |
---> f7b3f317ec73 | |
Step 2 : RUN mkdir /myvol | |
---> Using cache | |
---> dc492baa6d8d | |
Step 3 : RUN echo "hello world" > /myvol/greeting | |
---> Using cache | |
---> 9094f8931b89 | |
Step 4 : VOLUME /myvol | |
---> Using cache | |
---> 83916cc968f0 | |
Successfully built 83916cc968f0 | |
[10:33:34] | |
~/tmp/vmount$ docker run --rm f | |
[10:33:41] | |
~/tmp/vmount$ docker volume ls | |
DRIVER VOLUME NAME | |
[10:33:45] | |
~/tmp/vmount$ docker run f | |
[10:33:50] | |
~/tmp/vmount$ docker volume ls | |
DRIVER VOLUME NAME | |
local c19ff31aa2867a032eb73604731f0c6f388f20a7f78dab6a65a1a3853f952466 | |
[10:33:51] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment