Comment on BuildKit: Docker's Hidden Gem That Can Build Almost AnythingparentComments−xyzzy_plugh6moThe difference is that you can blow the Nix cache away and reproduce it entirely. The same cannot be said for Docker.−verdverm6moThat's not trueDocker has a `--no-cache` flag, even easier than blowing it away, which you can also do with several built in commands or a rm -rf /var/lib/dockerPerhaps worth revisiting: https://docs.docker.com/build/cache/−mkesper6moThat will rebuild the cache from upstream but not reproducibly.
Comments
The difference is that you can blow the Nix cache away and reproduce it entirely. The same cannot be said for Docker.
That's not true
Docker has a `--no-cache` flag, even easier than blowing it away, which you can also do with several built in commands or a rm -rf /var/lib/docker
Perhaps worth revisiting: https://docs.docker.com/build/cache/
That will rebuild the cache from upstream but not reproducibly.