4 ms·
A Docker image is basically the cached result of a lucky, nondeterministic imperative build success from a Dockerfile. In comparison, a Nix file is actually de
by pmarreck 3y ago
A Docker image is basically the cached result of a lucky, nondeterministic imperative build success from a Dockerfile.
In comparison, a Nix file is actually declarative ("I want my result system to have this" as opposed to "Do this to get me towards my result system"), and is actually reproducible.
But notice the sizes of both a Docker image (many megabytes) and a Nix file (a couple of K)...
- globular-toast 3y agoA many megabytes Dockerfile?! Where?
- pmarreck 3y agoYou're right, and I meant "Docker image", was fortunately able to edit before the window closed! (Edited it for clarification. Sorry, 2-year-old plus no breakfast or coffee, minus sleep = daddy brain...) A Dockerfile provides no guarantees that it will succeed, is what I was getting at- which is why people download Docker images to begin with, because the build product is guaranteed to work, since it's immutable at that point.