4 ms·
FLAVOR: Ubuntu Server HEADLINE: Smaller Docker Images DESCRIPTION: An official, skinnied down, Ubuntu image for docker and AWS AMIs would be nice. I have som
by tyingq 10y ago
FLAVOR: Ubuntu Server
HEADLINE: Smaller Docker Images
DESCRIPTION: An official, skinnied down, Ubuntu image for docker and AWS AMIs would be nice. I have some clients that want to maintain some uniformity across host and guest, so they aren't interested in Alpine or Busybox images. But the Ubuntu image is ~200MB or so, where OpenSuse is about half that.
I understand Canonical doesn't build those images, but you would have the expertise to help them thin it out. Some wrapper around debootstrap or similar to make a thin server image?
ROLE: Help various clients with docker and AWS.
- caio1982 10y agoJust a heads up that AFAIK these Docker images are built on top of the Ubuntu Core ones (which are ~30MB) so this is likely the overhead of multiple Docker layers that we all know about, see https://github.com/docker-library/repo-info/blob/master/repos/ubuntu/tag-details.md#ubuntudevel https://github.com/docker-library/repo-info/blob/master/repo... as it apparently explains where the core image comes from. Disclaimer: I am a @canonical.com but not involved directly with that so I also +1'ed it :-)
- jayrwren 10y agoafaik, canonical does build those images. See here: https://cloud-images.ubuntu.com https://cloud-images.ubuntu.com
- tyingq 10y agoHmm. I assume some transformation happens before they end up as docker images or AMI images. In any case, what I'm asking for is some conversation between Canonical and Docker, Amazon, etc. To see if there's something obvious either side can do to skinny these down. The ubuntu image is for sure the most popular AMI, and I imagine one of the most popular docker ones. The collective bandwidth and time gain of optimizing the size would be significant. Currently, the ubuntu images are significantly larger than other popular images.
- dustinkirkland 10y agoCanonical is absolutely responsible for building those images. And yes, we do work with Amazon, Docker, et al. And yes, we're actively working on reducing image size. That said, what's "minimal" to one is not "minimal" to another. We can certainly take stuff away, until you end up at Alpine or Busybox size. But then we've stripped away the essence of what's Ubuntu. So it's a very delicate dance!
- cdnsteve 10y agoI switched to alpine because Ubuntu docker containers were massive.