Skip to content

Instantly share code, notes, and snippets.

@bencord0
Created June 16, 2021 08:55
Show Gist options
  • Save bencord0/8b4169b2968526b1e93ca9ca708780e8 to your computer and use it in GitHub Desktop.
Save bencord0/8b4169b2968526b1e93ca9ca708780e8 to your computer and use it in GitHub Desktop.
Dockerfail
$ docker build -t dockerfail .
Sending build context to Docker daemon 2.048kB
Step 1/3 : FROM ubuntu
latest: Pulling from library/ubuntu
345e3491a907: Pull complete
57671312ef6f: Pull complete
5e9250ddb7d0: Pull complete
Digest: sha256:adf73ca014822ad8237623d388cedf4d5346aa72c270c5acc01431cc93e18e2d
Status: Downloaded newer image for ubuntu:latest
---> 7e0aa2d69a15
Step 2/3 : RUN exit 1 | cat
---> Running in 8ea658949e56
Removing intermediate container 8ea658949e56
---> 52d1d29faa4a
Step 3/3 : RUN echo "Hello World"
---> Running in 92621d783f9e
Hello World
Removing intermediate container 92621d783f9e
---> f4837014c627
Successfully built f4837014c627
Successfully tagged dockerfail:latest
FROM ubuntu
RUN exit 1 | cat
RUN echo "Hello World"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment