Dockerimage size for Cloudron
-
Hello,
I am packaging littlelink-custom at the moment.
I am just wondering but what the hell is in the cloudron base image? I mean:
git.jascha.wtf/jascha/littlelink-custom-cloudron latest 8fd0c2993bf4 44 minutes ago 2.3GB
versus the container from LittleLink with an alpine in it:
julianprieber/littlelink-custom latest d043112244dc 32 hours ago 316MB
So what is in the base image that is needed every time and takes so much space?
Thanks for letting me know. I just want to understand why I use so much hard disc space.
-
Hello,
I am packaging littlelink-custom at the moment.
I am just wondering but what the hell is in the cloudron base image? I mean:
git.jascha.wtf/jascha/littlelink-custom-cloudron latest 8fd0c2993bf4 44 minutes ago 2.3GB
versus the container from LittleLink with an alpine in it:
julianprieber/littlelink-custom latest d043112244dc 32 hours ago 316MB
So what is in the base image that is needed every time and takes so much space?
Thanks for letting me know. I just want to understand why I use so much hard disc space.
@jaschaezra It's a common base image which almost all apps use, so it actually uses less overall.
-
@jaschaezra It's a common base image which almost all apps use, so it actually uses less overall.
But does it need to be Debian? All what is installed runs on alpine as well saving space.
I am not sure if shipping one bloated server for everything is the best thing. But this is just me.
-
You can see what is installed in the base image here - https://git.cloudron.io/cloudron/docker-base-image/
Many of the docs/tools like file manager, terminal etc rely on the base image. For example, tar/zip availability. Ultimately, the images are optimized for developer and support time and not disk size. If there is a problem in an app, you want your tools there to be able to debug quickly. The base image is shared across all apps and services (databases), so it's a one time cost. I remember the last time I used an alpine image, it didn't even have ping to debug.
On a side note, you might see a little more docker image use right now because we are migrating all apps to a newer base image which is based on jammy - https://forum.cloudron.io/topic/8130/docker-base-image-4-0