Skip to content

Instantly share code, notes, and snippets.

@kanzure
Created February 13, 2016 17:12
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 kanzure/449fe6849516f73d70e8 to your computer and use it in GitHub Desktop.
Save kanzure/449fe6849516f73d70e8 to your computer and use it in GitHub Desktop.
Unexpected docker build cache miss after successful --no-cache
git checkout master # setup Dockerfile
docker-compose build # uses cache (expected)
git checkout HEAD^1 # removes some line from Dockerfile
docker-compose build # uses cache (expected)
git checkout master # adds back same line to Dockerfile
docker-compose build --no-cache # does not use input from the cache (expected)
git checkout HEAD^1 # removes same line from Dockerfile
docker-compose build # has unexpected cache miss

possibly related? moby/moby#3199

@kanzure
Copy link
Author

kanzure commented Feb 14, 2016

Reported this upstream to docker, moby/moby#20304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment