Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
When first bringing up the boot2docker (either
This will fix the timezone within the boot2docker VM, which makes trouble shooting certain issues easier.
# Without /etc/localtime date +'%I:%M %p %Z' # returns 11:33 PM UTC # With /etc/localtime (America/New_York) date +'%I:%M %p %Z' # returns 07:33 PM EDT
So the zoneinfo database format is pretty stable, so I don't anticipate any changes that would cause breakage. Also, boot2docker is usually pretty up-to-date so if anything it'll be a newer libc in boot2docker for an older zoneinfo format, which should always work.
Obviously, not all systems have an
This should be pretty darn safe in the scheme of things.
I guess this only applies to Windows 7 / Docker Toolkit anymore. Anyway, here is how I changed the timezone on my Windows 7 docker machine:
You need to add some permanent settings to the docker machine as per the boot2docker FAQ
Finally, copy the timezone file when starting up docker-machine by adding the following to the
You should see the correct time now when you enter
In fact, I'm going to close this issue now since I'd say
(But I'm still going to add