Jump to content

How to change Docker timezone?


Recommended Posts

For some strange reason, docker detects my timezone as America/Chicago even though I have correctly setup "Date and Time" under unRAID. I have also manually defined a "TZ" variable under "Environment Variables" with the correct timezone but it isn't being used since "/etc/localtime:/etc/localtime:ro" detects America/Chicago and that is preferred by Docker over the manually defined "TZ" variable.

 

Here is the command output from my Plex Docker without the TZ variable:

/usr/bin/docker run -d --name="PlexMediaServer" --net="host" --privileged="true" -e TZ="America/Chicago" -v "/mnt/cache/Docker/appdata/plexmediaserver":"/config":rw -v "/mnt/user/Media/":"/media":rw -v "/tmp":"/transcode":rw limetech/plex

 

How does one change Docker timezone?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...