How To Change The Time Zone For A Doker Container. (Doc ID 2300430.1)

Last updated on SEPTEMBER 08, 2017

Applies to:

Linux OS - Version Oracle Linux 6.0 with Unbreakable Enterprise Kernel [2.6.32] and later
Information in this document applies to any platform.

Goal

The goal of this document is to set up the timezone  on the container to match the same timezone on the Docker server, this will allow users to

see the same time in both instances (Docker Server and Container).

Most of the time Containers do not use the same time as the Docker server, this document will show how to configure this.

 

This is how this looks like before making the changes.

 

Container Time:

 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms