debian-docker
debian-docker copied to clipboard
Allow setting the locale and time zones
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 [email protected] setting TIMEZONE='Europe/Vienna' in /etc/debootstrap/config could work. Or even passing the environment variable TIMEZONE.