3 ms·
Aren't Docker images deduplicated internally, so you'll only notice their size when you try to ship them?
by amelius 6mo ago
Aren't Docker images deduplicated internally, so you'll only notice their size when you try to ship them?
- soraminazuki 6mo agoDocker's layer-based deduplication mechanism is ineffective or actively harmful IMO. In practice, different images aren't going to share layers even for the same software because images are always going to be built against the latest base image. To make matters worse, many Dockerfiles run `apt-get update` or other equivalent commands, overwriting what's in the base layers and creating tons of wasted space. Nix does a much better job at deduplication with the Nix store.
- a_t48 6mo agoThis is fixable, but needs a custom pull client+registry. (Agree that Nix does a better job, if you're inclined to use it!)