News for hackers. Stuff that matters.
Re:Docker Is Four Things by pmarreck on Thursday August 31, 2023 @10:12AM (#37337432)
A Dockerfile is basically the cached result of a lucky, nondeterministic imperative build success.

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 Dockerfile (many megabytes) and a Nixfile (a couple of K)...

Re:Docker Is Four Things by globular-toast on Thursday August 31, 2023 @10:59AM (#37338214)
A many megabytes Dockerfile?! Where?
Re:Docker Is Four Things by pmarreck on Thursday August 31, 2023 @11:02AM (#37338272)
You'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.