← Back to context Comment by xyzzy_plugh 1 day ago It's not reproducible then, it's simply cached. It's a valid approach but there's tradeoffs of course. 4 comments xyzzy_plugh Reply verdverm 18 hours ago it's not an either or, it can be reproducible and cachedsimilarly, nix cannot guarantee reproducibility if the user does things to break that possibility xyzzy_plugh 17 hours ago The difference is that you can blow the Nix cache away and reproduce it entirely. The same cannot be said for Docker. verdverm 16 hours ago That'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/ 1 reply →
verdverm 18 hours ago it's not an either or, it can be reproducible and cachedsimilarly, nix cannot guarantee reproducibility if the user does things to break that possibility xyzzy_plugh 17 hours ago The difference is that you can blow the Nix cache away and reproduce it entirely. The same cannot be said for Docker. verdverm 16 hours ago That'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/ 1 reply →
xyzzy_plugh 17 hours ago The difference is that you can blow the Nix cache away and reproduce it entirely. The same cannot be said for Docker. verdverm 16 hours ago That'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/ 1 reply →
verdverm 16 hours ago That'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/ 1 reply →
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/
1 reply →