jmtd/debian-docker

Allow setting the locale and time zones

Opened this issue · 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.

According to mika in grml@irc.freenode.net setting TIMEZONE='Europe/Vienna' in /etc/debootstrap/config could work. Or even passing the environment variable TIMEZONE.