TZ environment variable not respected in rhel7-atomic and rhel7-minimal container images

Solution Verified - Updated -


After setting TZ environment variable, timezone and time are still not show correctly inside container:

# docker run --rm -it -e 'TZ=America/New_York' /bin/bash
bash-4.2# date
Wed Jan  9 22:35:54 America 2019 #<--- Expected to see EST or EDT.


  • Red Hat OpenShift Container Platform
    • 3.x
  • Red Hat Enterprise Linux Atomic Host
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In