Skip to content

Comment on BuildKit: Docker's Hidden Gem That Can Build Almost Anythingparent

Comments

it's not an either or, it can be reproducible and cached

similarly, nix cannot guarantee reproducibility if the user does things to break that possibility

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.