News for hackers. Stuff that matters.
Re:Build Your Own Docker with Linux Namespaces, Cgroups, and... by AnonCoward42 on Tuesday June 27, 2023 @02:25AM (#36489522)
Ironically Ubuntu image is worse for debugging than Alpine by default even if it is substantially bigger. `vi` and `less` are missing from Ubuntu for example and are part of Alpine.
Re:Build Your Own Docker with Linux Namespaces, Cgroups, and... by gjvc on Tuesday June 27, 2023 @03:21AM (#36489864)
So? All you have to do is "docker exec -it container /bin/bash" and run "apt update" and "apt install vim", then remake the image with fixes or re-run the container once you've figured it out.
Re:Build Your Own Docker with Linux Namespaces, Cgroups, and... by AnonCoward42 on Tuesday June 27, 2023 @04:52AM (#36490488)
You can always smuggle the debugging tools in even `FROM scratch`, but my point was that "by default" these debugging tools were missing on Ubuntu.
Re:Build Your Own Docker with Linux Namespaces, Cgroups, and... by shepherdjerred on Tuesday June 27, 2023 @11:43AM (#36494487)
The benefit of Ubuntu, at least for me, is that I know it pretty well. Alpine isn't bad, I'm just not familiar with it.
Re:Build Your Own Docker with Linux Namespaces, Cgroups, and... by tracker1 on Tuesday June 27, 2023 @02:07PM (#36496533)
Try debian-slim, should mostly be the same, but save you 100mb+ off of your final size most of the time.