Red Hat Bugzilla – Bug 1312947
[RFE] make container time zone match the one of the node
Last modified: 2017-07-18 05:13:01 EDT
Description of request:
Currently containers may have random time zones based on the imaged used. This request is to allow setting a timezone for all containers for ease of auditing and maintenance of containers. An option would be to mount /etc/localtime into all containers so that their time zones match the node's time zone
Version-Release number of selected component (if applicable):
The problem with always setting the /etc/localtime into the container, is that it assumes that this means something to the content inside of the container. For this reason docker upstream has been reluctant to accept patches making this so.
You can simply volume mount in /etc/localtime and hope for the best.
I suppose we could do this at the higher level tools. Or at least add a config option to do this.
Asking users to mount in /etc/timezone also means that all users and containers have to be able to do host mounts, which we are generally restricting in OSCP deployments.
Can't we make OSCP do this automatically then?