4 ms·
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 pres
by cpuguy83 3y ago
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.
- clhodapp 3y agoIn 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.