Actions
Bug #49449
closedcephadm: synchronize container timezone with host
% Done:
0%
Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
Right now, the timezone within the container differs from the host. Timestamps in the future (or past) will hinder troubleshooting customer environments.
I can see different options:
1. add podman --tz=local
https://www.redhat.com/sysadmin/tick-tock-container-time
2. add `-v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime` to the volumes
https://medium.com/@yildirimabdrhm/kubernetes-timezone-management-8cc139b01f9d
https://serverfault.com/questions/683605/docker-container-time-timezone-will-not-reflect-changes/683651
# date Mi 24. Feb 12:42:13 CET 2021 # podman run -t -i --rm ubuntu date Wed Feb 24 11:42:10 UTC 2021 # podman run -t -i --rm -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime ubuntu date Wed Feb 24 12:42:29 CET 2021 # podman run -t -i --rm --tz=local ubuntu date Wed Feb 24 12:42:45 CET 2021
Updated by Kefu Chai about 3 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 40284
Updated by Sebastian Wagner almost 3 years ago
- Status changed from Fix Under Review to Won't Fix
Updated by Sebastian Wagner over 2 years ago
- Related to Bug #53323: the timezone in containers managed by cephadm are not in sync with the host added
Actions