Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $ cat Dockerfile.volume
  2. FROM alpine
  3. VOLUME /foo
  4. $ docker build -t with-volume -f Dockerfile.volume .
  5. $ cat Dockerfile.child
  6. FROM with-volume
  7. RUN echo baz > /foo/bar
  8. $ docker build -t child -f Dockerfile.child .
  9. $ docker run -it --rm child cat /foo/bar
  10. cat: can't open '/foo/bar': No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement