Skip to content

Instantly share code, notes, and snippets.

@hairyhenderson
Created April 25, 2017 00:46
Show Gist options
  • Save hairyhenderson/9578ed27fa23a961da2db692e3220a0b to your computer and use it in GitHub Desktop.
Save hairyhenderson/9578ed27fa23a961da2db692e3220a0b to your computer and use it in GitHub Desktop.
result of build caches
$ docker build -f foo .
Sending build context to Docker daemon 968.2 kB
Step 1/2 : FROM scratch
--->
Step 2/2 : ENTRYPOINT foo
---> Running in 6ff458f299fc
---> 9bd53a17eb65
Removing intermediate container 6ff458f299fc
Successfully built 9bd53a17eb65
$ docker build -f foo .
Sending build context to Docker daemon 968.2 kB
Step 1/2 : FROM scratch
--->
Step 2/2 : ENTRYPOINT foo
---> Using cache
---> 9bd53a17eb65
Successfully built 9bd53a17eb65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment