Open instantdreams opened 2 months ago
Date on host reports according to timezone. Date on container reports in UTC.
services: mosquitto: image: eclipse-mosquitto:latest container_name: mqtt hostname: mqtt ports: - 1883:1883 # mqtt - 9001:9001 # websockets environment: - TZ=America/Edmonton volumes: - /srv/mqtt/config:/mosquitto/config - /srv/mqtt/data:/mosquitto/data - /srv/mqtt/log:/mosquitto/log - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro restart: unless-stopped
docker compose up --detach
$ docker exec mqtt date Tue Apr 16 15:35:43 UTC 2024 $ docker exec mqtt cat /etc/timezone America/Edmonton
To rebuild the mqtt docker container to include the tzdata component so it is timezone aware, or to implement another process to support timezones.
tzdata
Description
Date on host reports according to timezone. Date on container reports in UTC.
Configuration
compose.yaml
docker compose up --detach
Reproducing Issue
Environment
Expectation
To rebuild the mqtt docker container to include the
tzdata
component so it is timezone aware, or to implement another process to support timezones.