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): 3.1.1
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. -v /etc/localtime:/etc/localtime 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?
This bug has been identified as a dated (created more than 3 months ago) bug. This bug has been triaged (has a trello card linked to it), or reviewed by Engineering/PM and has been put into the product backlog, however this bug has not been slated for a currently planned release (3.9, 3.10 or 3.11), which cover our releases for the rest of the calendar year. As a result of this bugs age, state on the current roadmap and PM Score (being below 70), this bug is being Closed - Differed, as it is currently not part of the products immediate priorities. Please see: https://docs.google.com/document/d/1zdqF4rB3ea8GmVIZ7qWCVYUaQ7-EexUrQEF0MTwdDkw/edit for more details.
Some useful hints are also in bug 1399749.