Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kojiromike/69decc01e6372a15ef30a74de8af8755 to your computer and use it in GitHub Desktop.
Save kojiromike/69decc01e6372a15ef30a74de8af8755 to your computer and use it in GitHub Desktop.
$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment