It looks like this could be a complicated issue. I searched around a little because a colleague of mine had some timezone issues with Docker lately. I think each distro may have its own way of doing timezones. Many seem to share the /etc/timezone, /etc/localtime, and /usr/share/zoneinfo files/folders. Alpine doesn’t seem to come with timezone data in their base image.
It appears to me that the kernel keeps time in UTC and therefore Docker (by default) will use UTC for its containers. I’ve seen posts to either export the TZ environment variable or to use host mounts. http://olavgg.com/post/117506310248/docker-how-to-fix-date-and-timezone-issues sudo docker run --rm -it \ -v /etc/localtime:/etc/localtime:ro \ -v /etc/timezone:/etc/timezone:ro \ --name my_container debian:jessie date Please correct me if I’m wrong. Brandon Richins From: <[email protected]> on behalf of Luke Meyer <[email protected]> Date: Wednesday, July 6, 2016 at 11:27 AM To: dev <[email protected]> Subject: /etc/localtime Is there a simple way to find out the host's local timezone without having to mount /etc/localtime (which is pretty painful given it requires hostmount)? Could there be some way it's passed in as an env var or something?
_______________________________________________ dev mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
