การตั้ง Timezone ใน Docker Ubuntu

1. เข้า bash ของ docker container ก่อน

docker exec -it mysql_container bin/bash

2. ตั้ง Timezone

echo Asia/Bangkok > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata

ผลลัพธ์

Current default time zone: 'Asia/Bangkok'
Local time is now:      Fri Sep 16 10:19:55 ICT 2016.
Universal Time is now:  Fri Sep 16 03:19:55 UTC 2016.

About WK

Kajook is a Senior Software Engineer. Job is Design & Develop in Java EE environment on Glassfish. I'm Interested in Agile software development ,iOS and Android.
This entry was posted in knowledge and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s