Size of base Fedora 32 Docker image
mattdm at fedoraproject.org
Tue Jan 13 15:18:51 UTC 2015
On Thu, Jan 08, 2015 at 11:36:04PM -0800, M. Edward (Ed) Borasky wrote:
> I'm starting to build Docker images on the Fedora base and I'm a
> little concerned about the size of the images. For example, the Debian
> base is 85.1 MB, the Ubuntu base is 192 MB and the CentOS base is 224
> MB. The Fedora base is 250.2 MB and that's *before* I install any
> application code.
> Is there any way I can build a smaller base? Ideally I'd like
> something under 100 MB but even getting it under 200 MB would be
Yeah it seems to have crept up a bit. The image went from this Cloud
SIG over to the Base WG (since there's so much interest in Docker), but
I think we still have a vested interest in keeping it small. In
general, much of the regular dependency-shrinking work we've been doing
should help here.
Unfortunately, the easy work is mostly done, as is some of the
moderately hard. The next most helpful thing is probably making a
compact version of python sufficient for yum, cloud-init, grubby (new
version), and _possibly_ firewalld. As it is, it's about a third
Oh hmmm. I see that grub2 got into the docker image somehow. That
should probaby be fixed, and provides a big savings even in the
compressed version because that's the only thing that pulls in
Hmmm. Firewalld too. That really doesn't need to be there, does it?
That said, the docker image we're producing *is* only 90MB compressed —
— and 241MB uncompressed. Something _additionally_ weird is going on.
Are you interested in taking point on this for Fedora 22? Or finding a
handful of people who are interested in working with the Base WG to
figure it out?
<mattdm at fedoraproject.org>
Fedora Project Leader
More information about the cloud