Re: EM9 Docker Bug: Container timezone/date settings not synced with the host.

13 views
Skip to first unread message

Christopher Shanti Burkey

unread,
Oct 31, 2018, 10:47:38 AM10/31/18
to enter...@googlegroups.com
Nice! Thank you for finding that fix.



On Wed, Oct 31, 2018 at 3:29 AM Landy DeField <contac...@synergyninjas.com> wrote:
adding "-v /etc/localtime:/etc/localtime:ro" to the docker run command syncs the host and container
 
Example:
host$ docker run -v /etc/localtime:/etc/localtime:ro -p 8080:8082 --name entermediadb01 entermediadb/entermediadb9

On Wednesday, October 31, 2018 at 12:20:27 AM UTC-7, Landy DeField wrote:
I noticed the timestamp was way off when experimenting with hot folder syncing.

Example:

host$ date
Wed Oct 31 00:18:00 PDT 2018

container# date
Wed Oct 31 07:18:00 UTC 2018



 


--
You received this message because you are subscribed to the Google Groups "EnterMedia" group.
To unsubscribe from this group and stop receiving emails from it, send an email to entermedia+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Landy DeField

unread,
Nov 2, 2018, 12:57:10 AM11/2/18
to EnterMedia
If you are using the entermedia-docker.sh script to configure and fire up the docker container you will need to edit it to use your timezone before running the script.
(line 137 in my editor)
..
        -e TZ="America/New_York" \
..
Example: I edited line 137 to use the Los Angeles timezone
..
         -e TZ="America/Los_Angeles" \
..

If you do not know your timezone TZ format you can find it listed in this chart on Wikipedia.

Landy DeField

unread,
Nov 2, 2018, 2:02:31 AM11/2/18
to EnterMedia
I am going to post this as a top level entry
Reply all
Reply to author
Forward
0 new messages