By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
IT Infras HolicIT Infras HolicIT Infras Holic
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Search
  • Privacy Policy
© 2024. All Rights Reserved.
Font ResizerAa
IT Infras HolicIT Infras Holic
Font ResizerAa
  • News
  • Linux
  • Docker
  • Web Server
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
Search
  • News
  • Linux
    • Application
    • SELinux
    • Centos
    • Ubuntu
  • Docker
  • Web Server
    • Kong
    • Nginx
    • Openlitespeed
  • Database
  • Mikrotik
  • Windows
  • Mail
  • Tools
    • 2048
    • Fantasy Forest
    • Hextris
    • Crossword
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
IT Infras Holic > Blog > Docker > How to Change Docker Timezone
Docker

How to Change Docker Timezone

writer
Share
1 Min Read
SHARE

Change Docker Timezone

If you got that your container has different timezone with the host, you must follow these steps below to fix it (change docker timezone).

Contents
Change Docker TimezoneLog into bash of your container:Remove the symbolic link file (/etc/localtime):Identify the timezone you want to configure and create the symbolic link for it:

Follow these steps:

Log into bash of your container:

1
docker exec -u 0 -it <container_name> bash

Remove the symbolic link file (/etc/localtime):

1
sudo rm -rf /etc/localtime

Identify the timezone you want to configure and create the symbolic link for it:

For instance, I would like to set Asia/Jakarta timezone:

1
ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime

Now verify it by:

1
date

and the output would be your timezone:

You Might Also Like

How to Clear Docker Logs and Activate Log Rotate

Install Kong Konga using Docker Compose

How to Enable Docker Remote API

Install Docker CE on CentOS 7

TAGGED: docker, timezone
Share This Article
Facebook Twitter Whatsapp Whatsapp LinkedIn Telegram Copy Link
Previous Article How to Uninstall CloudMonitor Agent (Alibaba CLoud) How to Uninstall CloudMonitor Agent (Alibaba CLoud)
Next Article Install Kong Konga using Docker Compose Install Kong Konga using Docker Compose
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest News

bash
Monitoring File & Directory Changes using Bash Script
Linux Application
vulnerability
Vulnerability Checker CVE-2024-3094
Linux
wiki.js
Unleashing the Potential of Knowledge Management with Wiki.js
Application Linux
Install Apache Guacamole
How to Install Apache Guacamole with Docker Compose
Application Linux
Follow US
© 2024
activity notes activity notes
Welcome Back!

Sign in to your account

Lost your password?