|
|
|
|
|
by 0x457
1417 days ago
|
|
> Same Dockerfile, same outcome, mostly every time. Uhm, no? Dockerfile has tons of side effects: - doing `apt-get update -y`? On some machines it will run, on others it won't be due to caching.
- Using `FROM` that isn't locked to sha256? Well, sometimes you will get version 1.2.3 sometimes you will get 1.2.5. Sometimes a new one will get tagged with the same tag.
- It literally has network access during the build, unless you include a hash of what you're downloading, there is zero guarantee it will be the same download. I think the majority of leaf containers rarely get the same result with the same Dockerfile. The only thing that is guaranteed with docker is that the same image will be the same image, but ensuring that different machines pull the same version of an image is another story. |
|
Modulus the absurdly high barriers to entry, Nix is trivially better for this purpose.