Created
March 8, 2018 15:55
-
-
Save kojiromike/69decc01e6372a15ef30a74de8af8755 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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