Easy way to set local time in Docker for Windows

Expected behavior

Correct time in containers

Actual behavior

UTC time in containers (as is default configuration in Moby Linux VM)


Steps to reproduce the behavior

From powershell:
PS C:> date
Fri Jun 24 09:57:56 AUSEST 2016
PS C:> docker run --rm -it centos date
Thu Jun 23 23:57:57 UTC 2016

In the docker interface, perhaps under advanced settings, have a dropdown box of timezones that allow the selection of the local or preferred timezone that can then be linked in Moby Linux /etc/localtime ?

1 Like