debian-docker icon indicating copy to clipboard operation
debian-docker copied to clipboard

Allow setting the locale and time zones

Open paulmenzel opened this issue 10 years ago • 1 comments

It’d be great if the locale and time zone could be set.

For the time zone, using timedatectl in the Dockerfile does not work out of the box when building the Docker image as D-Bus is not running, so the symbolic link to /etc/localtime has to be set manually. (I do not know if /etc/timezone needs to be updated too.)

Reading the manual page of debootstrap I couldn’t find a related option either.

paulmenzel avatar Aug 28 '15 07:08 paulmenzel

According to mika in [email protected] setting TIMEZONE='Europe/Vienna' in /etc/debootstrap/config could work. Or even passing the environment variable TIMEZONE.

paulmenzel avatar Aug 28 '15 08:08 paulmenzel