News for hackers. Stuff that matters.
Re:Nix is a better Docker image builder than Docker's image ... by cpuguy83 on Saturday March 16, 2024 @02:23AM (#39723788)
Docker doesn't give you the tooling to build a package and opts for you to bring the toolchain of your choice. Docker executes your toolchain, and does not prescribe one to you except for how it is executed.

Nix is the toolchain, which of course has its advantages.

Re:Nix is a better Docker image builder than Docker's image ... by clhodapp on Saturday March 16, 2024 @04:33PM (#39729257)
In terms of builds and dependency management, Docker and nix actually work pretty similarly under the covers:

Both are mostly running well-controlled shell commands and hashing their outputs, while tightly controlling what's visible to what processes in terms of the filesystem. The difference is that nix is just enough better at it that it's practical to rebase the whole ecosystem on top of it (what you refer to as a "toolchain") whereas Docker is slightly too limited to do this.