Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ docker build - <<-DOCKERFILE
- > FROM alpine
- > VOLUME /foo
- > RUN touch /foo/bar
- > RUN ls /foo/bar
- > DOCKERFILE
- Sending build context to Docker daemon 2.048kB
- Step 1/4 : FROM alpine
- ---> 3fd9065eaf02
- Step 2/4 : VOLUME /foo
- ---> Running in 27ef409c1f55
- ---> 74150560be3d
- Removing intermediate container 27ef409c1f55
- Step 3/4 : RUN touch /foo/bar
- ---> Running in f3402246a8cc
- ---> 3d1f40cb47e9
- Removing intermediate container f3402246a8cc
- Step 4/4 : RUN ls /foo/bar
- ---> Running in f47e5c423862
- ls: /foo/bar: No such file or directory
- The command '/bin/sh -c ls /foo/bar' returned a non-zero code: 1
Add Comment
Please, Sign In to add comment