Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
~/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
You can’t perform that action at this time.