Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker time zone not set on Docker update

Featured Replies

My Zoneminder docker is not getting the time zone passed properly when the docker is updated or restarted:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name="Zoneminder" --net="br0" --ip="192.168.1.8" --privileged="true" -e TZ="" -e HOST_OS="unRAID" -e "TCP_PORT_80"="80" -e "PUID"="99" -e "PGID"="100" -e "SHMEM"="20%" -v "/mnt/cache/appdata/Zoneminder":"/config":rw -v "/mnt/user/zoneminder/data/":"/var/cache/zoneminder":rw --log-opt max-size=50m --log-opt max-file=1 dlandon/zoneminder
7fe8ad9f33efa1489572d5ed9994e51ade5877b2dc3f97433995a235b9e72549

 

If I edit the template and restart the docker the ZM environment variable is set properly.  This appears to be on only one of my two servers.  I don't see this issue on my test server.  Any ideas on where to look to solve this problem?

Edited by dlandon

  • Author

Any docker that is updated does not get the TZ environment variable set.  It can be re-created by forcing an update on any docker.  This is happening in rc3.  I booted rc2 and it is also happening there.

Was this only happening  in special cases? I can't seem to make it happen here. But I didn't use Zoneminder to test though.

1 minute ago, saarg said:

Was this only happening  in special cases? I can't seem to make it happen here. But I didn't use Zoneminder to test though.

 

The updater code did not read properly the time-zone from unRAID. Causing an update of any container with an empty TZ.

 

@dlandion: yeah you need to wait for rc5.

  • Author

It causes a proiblem on Dockers that use the environment variable TZ to set the time zone.  Zoneminder just happens to be one that sets its time zone from the TZ variable.  You can make it happen by forcing an update to any Docker and checking the start command line to the Docker.  You'll see TZ="" which should be for example TZ="America/New_York" for the eastern time zone.

  • Author
9 minutes ago, bonienl said:

 

The updater code did not read properly the time-zone from unRAID. Causing an update of any container with an empty TZ.

 

@dlandion: yeah you need to wait for rc5.

 

I can wait.  Just wanted to be sure it was addressed before final.  The work around is to edit the template and start the Docker that way.

11 minutes ago, dlandon said:

It causes a proiblem on Dockers that use the environment variable TZ to set the time zone.  Zoneminder just happens to be one that sets its time zone from the TZ variable.  You can make it happen by forcing an update to any Docker and checking the start command line to the Docker.  You'll see TZ="" which should be for example TZ="America/New_York" for the eastern time zone.

 

I am aware of that, but I had the TZ variable set in the template, so it's not dependent of reading the timezone from unraid. So therefor the bug didn't affect the container I tested with.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.