Dumb question: What's the recommended way to forward the timezone into a
docker container after this? The industry standard before was to add
this in docker-compose.yaml

      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"

1. Is it enough to only mount /etc/localtime? 
2. Should one use TZ envvar instead?
3. Should one create a local /etc/timezone by other means?
4. Will this differ depending on if the container is also pre or post 25.10?
5. Is there any easy way to conditionally mount a file if it exists. It would 
be a bit annoying to distribute different docker-compose files depending on 
which host OS it is running on.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2103839

Title:
  timedatectl set-timezone does not update /etc/timezone, leaving system
  with inconsistent time zone setting

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2103839/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to