We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: