I’ve been looking for a light weight Linux container of Linux_x86_64. Tried alpine, but it is of “musl-linux-amd64”. Not sure what’s the difference, but it’s not compatible with the software I need to install, i.e. MQClient.
It works on Ubuntu, but it’s too heavy, with too many packages I don’t really need. I wonder who would run a Ubuntu Desktop on a container.
Is there a stripped down Ubuntu container image? I’m also consider build one from scratch, but couldn’t find a document how to do it beyond a “Hello” container.
Ubuntu and Debian-Slim images have a size pf roughly 25mb on Dockerhub and are extrected on the host to something between 60 and 70mb. Of couse this is still like 10 to 15 times the size of the alpine image.
You can use debootstrap (see: https://docs.docker.com/develop/develop-images/baseimages/) to create your own base image, though it will take ages until you manage to create a base image that is smaller than the Ubuntu or Debian-Slim images.
The next thing to consider is that you build your images as much as possible in the same way. Every command in the Dockerfile creates a new layer and if these layers are the same in different images they are shared and the space is used only once. It is possible that you have 3 images with 100 MB each but they only use 150 MB on your system.
Never heard of CirrOS before. The image size is intriguing and close to alpine, though a version sub 1.0 would stop me from using it - or at least run extensive tests…