4 ms·
Show HN: Docker pulls more than it needs to
- a_t48 7mo agoI built a little site to visualize a problem I keep running into using Docker at customer sites with bad internet. It's solvable without moving completely off Docker. Would love to chat if anyone else runs into this and wants a drop-in solution.
- deleted 7mo ago[deleted]
- chasing0entropy 7mo agoDocker is the worst virtualization container. It doesn't work from bare metal, doesn't work without internet, and obfuscates the underlying stack. I would the extra work and build your stacks from scratch.
- a_t48 7mo agoWhat's your alternative here?
- munch-o-man 7mo agoI mean...it works just fine without internet...host your own registry...or just build your own from Dockerfiles locally. Not saying it is the right use case for everything but I'm confused what you mean by docker doesn't work without the internet. Neither does pip, rubygems, apt, etc...unless you build locally or host your own repository. Can you elaborate on what exactly you mean because you probably have a point that I am just missing.
- a_t48 7mo agoYou can also docker save + docker load :)
- stop50 7mo agoAt an previous employer i was able to cut down on the needed space by standartising the layers and adding a timelimit in which the tags were available. The base images were build after we rolled out updates of packages and "encouraged" everyone to use those for their containers. These containers were also minified as much as needed(deduplicated files, removing useless stuff, ...), without sacrificing usability. I also used buildah to combine everything into an single layer to prevent removed files from wasting space. Sadly DNF blows up the images so it was hard to minify it much.
- a_t48 7mo agoSquashing the image means you end up duplicating all those files across images though, unless I'm misunderstanding.