Guest User

Untitled

a guest
Mar 17th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $ docker build - <<-DOCKERFILE
  2. > FROM alpine
  3. > VOLUME /foo
  4. > RUN touch /foo/bar
  5. > RUN ls /foo/bar
  6. > DOCKERFILE
  7. Sending build context to Docker daemon 2.048kB
  8. Step 1/4 : FROM alpine
  9. ---> 3fd9065eaf02
  10. Step 2/4 : VOLUME /foo
  11. ---> Running in 27ef409c1f55
  12. ---> 74150560be3d
  13. Removing intermediate container 27ef409c1f55
  14. Step 3/4 : RUN touch /foo/bar
  15. ---> Running in f3402246a8cc
  16. ---> 3d1f40cb47e9
  17. Removing intermediate container f3402246a8cc
  18. Step 4/4 : RUN ls /foo/bar
  19. ---> Running in f47e5c423862
  20. ls: /foo/bar: No such file or directory
  21. The command '/bin/sh -c ls /foo/bar' returned a non-zero code: 1
Add Comment
Please, Sign In to add comment