Official-images: Latest ubuntu 16.04 does not have the 'locales' package installed in the base image

Created on 13 Apr 2017  路  6Comments  路  Source: docker-library/official-images

(I could not find a specific Ubuntu issue page to submit this).

In the latest update of the Ubuntu 16.04 official image (perhaps due to e6eff5692ae9b4c8fdd101fd16f4df30b0b7d36c) the locales package is missing, but it is installed by default on every other image. Pulling 16.04 now breaks any image that depends on locale-gen being available without installing.

Locale-gen is available by default in: 12.04, 14.04, 14.10 and 16.10.

Most helpful comment

Hi @orf, @mitar,

For a majority of use cases, locale and timezone data takes up extra space without being used. We _have_ intentionally removed these from minimal images, as part of our drive to keep Ubuntu as the best choice for Docker users. This change reduces the size of the Docker image by ~8%. This represents a substantial space saving, and a corresponding increase in container density.

If you need locales and/or tzdata for your application, you'll want to modify your scripting to install them specifically.

Thanks for using Ubuntu!

All 6 comments

I see that really locales has been removed with this pull request: #2852

Based on reading this issue, it seems this is an upstream bug. I have found this one already reported.

Hi @orf, @mitar,

For a majority of use cases, locale and timezone data takes up extra space without being used. We _have_ intentionally removed these from minimal images, as part of our drive to keep Ubuntu as the best choice for Docker users. This change reduces the size of the Docker image by ~8%. This represents a substantial space saving, and a corresponding increase in container density.

If you need locales and/or tzdata for your application, you'll want to modify your scripting to install them specifically.

Thanks for using Ubuntu!

But this is a breaking change without really any announcement or public discussion? At least for us consuming these Docker images.

We were hit by this as well, and I'll have to agree with @mitar.

If you expect people to base their work on these images, you cannot just remove major components in the images during releases.

Either launch a "light"/"unstable" version of the image, so people who want to lighten their images immediately can use those or introduce these changes in tandem with new Ubuntu releases, when we'll be looking for breakages anyway.

It cannot really be the intention that users of the images have to explicitly declare every single Ubuntu dependency in the beginning of the image, because you refuse to keep the base package list stable within releases. Please tell me this is just a mistake...

This is a duplicate of https://github.com/tianon/docker-brew-ubuntu-core/issues/82, which was redirected upstream (https://bugs.launchpad.net/cloud-images/+bug/1682305). In the future, please file these sorts of issues directly there (being sure to include the docker tag, and the information that you're experiencing this with the Docker images). Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pacifier17 picture pacifier17  路  7Comments

vielmetti picture vielmetti  路  3Comments

andersla picture andersla  路  4Comments

zakame picture zakame  路  8Comments

sonicdoe picture sonicdoe  路  4Comments