• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[INFO] Setting the correct timezone in a container
#1
Information 
While netPI's system time configured in the management web GUI

   

is passed to a container the timezone isn't. This is a Docker property.


In order to let a container have the correct timezone the environment variable TZ needs to be passed to the container when started. Otherwise the host time may differ from the container's time.

Here is an example how to set the variable:

   

Find there the list of possible timezones that can be configured
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Ready-to-deploy: full featured Node-RED container Armin@netPI 5 64 July-25th-2019, 06:16 AM
Last Post: Armin@netPI
  New Container example "OPC UA server" Armin@netPI 0 15 April-12th-2019, 11:51 AM
Last Post: Armin@netPI
  Official Node-RED container Armin@netPI 0 17 April-5th-2019, 10:39 AM
Last Post: Armin@netPI
  [INFO]Docker DNS server Armin@netPI 0 19 March-7th-2019, 09:02 AM
Last Post: Armin@netPI
  Multi-stage builds for slim container images Armin@netPI 0 10 February-7th-2019, 04:14 PM
Last Post: Armin@netPI
Heart [INFO] TeamViewer comes to netPI Armin@netPI 0 23 February-4th-2019, 04:41 PM
Last Post: Armin@netPI
  [SOLVED] Unique identifier in container mmolder 1 25 January-23rd-2019, 03:06 PM
Last Post: Armin@netPI
  [INFO] Best base image to use for own containers Armin@netPI 1 114 January-15th-2019, 08:58 PM
Last Post: Armin@netPI
  [SOLVED] activate LED1/2 with Node-RED + fieldbus nodes container Christian_Rau 5 77 January-11th-2019, 08:06 AM
Last Post: Armin@netPI
  [SOLVED] install ssh service to running container paubau 2 135 October-12th-2018, 01:03 PM
Last Post: paubau

Forum Jump:


Users browsing this thread: 1 Guest(s)