Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat Dockerfile.volume
- FROM alpine
- VOLUME /foo
- $ docker build -t with-volume -f Dockerfile.volume .
- $ cat Dockerfile.child
- FROM with-volume
- RUN echo baz > /foo/bar
- $ docker build -t child -f Dockerfile.child .
- $ docker run -it --rm child cat /foo/bar
- cat: can't open '/foo/bar': No such file or directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement