add change-timezone-in-docker.md

master
Eric Chang 7 years ago
parent 5e7aa9a70f
commit 0e963bd7cf

@ -0,0 +1,149 @@
---
title: "[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker"
date: 2019-05-21T17:25:15+08:00
noSummary: false
featuredImage: "https://h.cowbay.org/images/post-default-3.jpg"
categories: ['筆記']
tags: ['docker','timezone']
author: "Eric Chang"
---
最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致
有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的....
<!--more-->
之前因為沒有要上線,所以這個問題可以當烏龜忽略過去
不過測試了一陣子的librenms 打算正式上線了
又不想重作一次,導致累積滿久的圖表資料都消失
所以開始找尋方法來面對這個問題
本來看了這篇 https://www.arthurtoday.com/2016/07/how-to-setup-docker-container-timezone-host.html
想說來試試看好了
不過呢一開始依照這篇的說明在docker-compose.yml 內加入
```
web:
image: jarischaefer/docker-librenms
hostname: librenms
ports:
- "8001:80"
- "44301:443"
volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime:ro
environment:
- TZ="Asia/Taipei"
```
重起之後沒作用 0rz
於是我又加入了
```
volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
```
結果啟動直接報錯誤了..
看一下 log
```
May 21 09:09:12 bbs012 syslog-ng[12]: syslog-ng starting up; version='3.13.2'
*** Running /etc/my_init.d/librenms_100_cron...
*** Running /etc/my_init.d/librenms_101_ssl...
*** Running /etc/my_init.d/librenms_102_ipv6...
*** Running /etc/my_init.d/librenms_103_timezone...
/etc/my_init.d/librenms_103_timezone: line 4: /etc/timezone: Read-only file system
*** /etc/my_init.d/librenms_103_timezone failed with status 1
*** Killing all processes...
```
所以這個檔案不能改成 ro 不過如果不能唯獨那啟動docker的時候應該會被蓋掉吧
先來看一下那個 librenms_103_timezone 在幹什麼好了
```
docker exec -it librenms_web_1 cat /etc/my_init.d/librenms_103_timezone
#!/bin/bash -e
if [ -n "$TZ" ]; then
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
if [ ! -f /etc/php/7.3/cli/conf.d/100-timezone.ini ]; then
echo "date.timezone=$TZ" > /etc/php/7.3/cli/conf.d/100-timezone.ini
fi
if [ ! -f /etc/php/7.3/fpm/conf.d/100-timezone.ini ]; then
echo "date.timezone=$TZ" > /etc/php/7.3/fpm/conf.d/100-timezone.ini
fi
fi
2019-05-21 17:33:46 [mini@s013 librenms]$
```
OK ,這裡的確是用傳進來的 $TZ 在設定timezone 沒錯
可是我前面已經改過 docker-compose.yml
有把 TZ帶進來了啊再來確認一下
```
docker exec -it librenms_web_1 cat /etc/timezone
"Asia/Taipei"
```
咦,沒錯啊? 欸斗,等等,那兩個 "" 有點刺眼...
跟本機的比對一下看看
```
2019-05-21 17:36:20 [mini@s013 librenms]$ docker exec -it librenms_web_1 cat /etc/timezone
"Asia/Taipei"
2019-05-21 17:36:23 [mini@s013 librenms]$ cat /etc/timezone
Asia/Taipei
2019-05-21 17:37:10 [mini@s013 librenms]$
```
嗯,的確,本機的格式的確不包含那兩個 ""
那就改掉再來試試看吧...改成底下這樣
```
environment:
- TZ=Asia/Taipei
```
重起 docker ,然後確認時間看看
```
2019-05-21 17:39:00 [mini@s013 librenms]$ docker-compose down;docker-compose up -d
Stopping librenms_web_1 ... done
Stopping librenms_mysql_1 ... done
Removing librenms_web_1 ... done
Removing librenms_mysql_1 ... done
Removing network librenms_default
Creating network "librenms_default" with the default driver
Creating librenms_mysql_1 ... done
Creating librenms_web_1 ... done
2019-05-21 17:39:22 [mini@s013 librenms]$ docker exec -it librenms_web_1 cat /etc/timezone
Asia/Taipei
2019-05-21 17:39:42 [mini@s013 librenms]$ docker exec -it librenms_web_1 date
Tue May 21 17:39:48 CST 2019
2019-05-21 17:39:48 [mini@s013 librenms]$
```
OK ,果然沒有問題了!
雖然是小小的"" ,還是要特別注意啊!

@ -115,6 +115,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -139,10 +143,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -153,7 +153,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,81 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/change-timezone-in-docker/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/">
@ -773,85 +848,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-2.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta">
<span class="date moment">2018-12-13</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/freenas">freenas</a>
</div>
</div>
</div>
</article>
@ -882,6 +878,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -906,10 +906,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -920,7 +916,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -5,11 +5,22 @@
<link>https://h.cowbay.org/author/eric-chang/</link>
<description>Recent content in Eric Chang on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 17 May 2019 12:18:54 +0800</lastBuildDate>
<lastBuildDate>Tue, 21 May 2019 17:25:15 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/author/eric-chang/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</title>
<link>https://h.cowbay.org/post/change-timezone-in-docker/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/post/change-timezone-in-docker/</guid>
<description>&lt;p&gt;最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致&lt;/p&gt;
&lt;p&gt;有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&amp;hellip;.&lt;/p&gt;</description>
</item>
<item>
<title>Transfer File Content Using Xclip in Terminal</title>
<link>https://h.cowbay.org/post/transfer-file-content-using-xclip-in-terminal/</link>

@ -90,6 +90,85 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-2.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta">
<span class="date moment">2018-12-13</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/freenas">freenas</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/">
@ -873,84 +952,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
@ -983,6 +984,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -1007,10 +1012,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -1021,7 +1022,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,84 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/">
@ -364,6 +442,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -388,10 +470,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -402,7 +480,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -101,7 +101,7 @@
<hr>
<ul id="all-categories">
<li><a href="/author/eric-chang">Eric chang (23)</a></li>
<li><a href="/author/eric-chang">Eric chang (24)</a></li>
</ul>
</div>
@ -120,6 +120,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -144,10 +148,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -158,7 +158,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -12,7 +12,7 @@
<item>
<title>Eric Chang</title>
<link>https://h.cowbay.org/author/eric-chang/</link>
<pubDate>Fri, 17 May 2019 12:18:54 +0800</pubDate>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/author/eric-chang/</guid>
<description></description>

@ -107,7 +107,7 @@
<li><a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a></li>
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a></li>
<li><a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a></li>
<li><a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a></li>
@ -128,6 +128,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -152,10 +156,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -166,7 +166,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -39,7 +39,7 @@
<item>
<title>筆記</title>
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
<pubDate>Tue, 23 Apr 2019 15:28:56 +0800</pubDate>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</guid>
<description></description>

@ -190,6 +190,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -214,10 +218,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -228,7 +228,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -179,6 +179,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -203,10 +207,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -192,6 +192,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -216,10 +220,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -230,7 +230,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,81 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/change-timezone-in-docker/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/inx-collect-detail-hardware-info/">
@ -792,99 +867,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
@ -915,6 +897,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -939,10 +925,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -953,7 +935,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -5,11 +5,22 @@
<link>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</link>
<description>Recent content in 筆記 on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Tue, 23 Apr 2019 15:28:56 +0800</lastBuildDate>
<lastBuildDate>Tue, 21 May 2019 17:25:15 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</title>
<link>https://h.cowbay.org/post/change-timezone-in-docker/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/post/change-timezone-in-docker/</guid>
<description>&lt;p&gt;最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致&lt;/p&gt;
&lt;p&gt;有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&amp;hellip;.&lt;/p&gt;</description>
</item>
<item>
<title>[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</title>
<link>https://h.cowbay.org/post/inx-collect-detail-hardware-info/</link>

@ -90,6 +90,99 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/10g-lab-using-proxmox-and-mellanox/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/10g-lab-using-proxmox-and-mellanox/">
<img src="/images/post-default-03.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/10g-lab-using-proxmox-and-mellanox/">[筆記] 用 proxmox &amp; Mellanox SFP 網卡土炮 10G LAB </a></h3>
<div class="meta">
<span class="date moment">2018-11-30</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>想做一個 10G 的 LAB 環境出來已經很久了。</p>
<p>只是礙於10G RJ45的卡太貴了然後光纖的種類又太複雜</p>
<p>如果直接在淘寶購買,很怕會買錯(什麼LC/FC LC/LC 多模單模 單芯雙芯 SFP/SFP+ 又是什麼光模塊的一大堆規格)</p>
<p>所以一直沒有付諸行動。</p>
<p>硬體的工作很久沒碰了,剛好在蝦皮看到有個賣家在賣 mellanox 的X2網卡以在台灣的價格來說算很便宜的 (550)</p>
<p>聊了一下,跟他請教了關於線材、光纖模塊的問題,回答也都很快很到位</p>
<p>就直接下訂了兩張網卡、兩個光纖模塊、一條LC/LC 光纖線</p>
<p>就是到貨有點久,等了兩個禮拜左右,一直到昨天東西才寄到</p>
<p>今天就花了點時間測試一下</p>
<p></p>
<a href="/post/10g-lab-using-proxmox-and-mellanox/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/10g">10G</a>
<a href="/tags/%E7%AD%86%E8%A8%98">筆記</a>
<a href="/tags/mellanox">mellanox</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/ansible-selectattr-filter/">
@ -820,6 +913,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -844,10 +941,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -858,7 +951,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -202,6 +202,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -226,10 +230,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -240,7 +240,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -179,6 +179,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -203,10 +207,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -191,6 +191,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -215,10 +219,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -229,7 +229,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -95,6 +95,83 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/change-timezone-in-docker/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/">
@ -794,87 +871,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-2.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta">
<span class="date moment">2018-12-13</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/freenas">freenas</a>
</div>
</div>
</div>
</article>
@ -906,6 +902,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -930,10 +930,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -944,7 +940,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -195,6 +195,13 @@
"type": "tag",
"url": "https://h.cowbay.org/tags/synology"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/timezone",
"title": "Timezone",
"type": "tag",
"url": "https://h.cowbay.org/tags/timezone"
},
{
"iconClass": "fa-tag",
"objectID": "https://h.cowbay.org/tags/ubuntu",

@ -5,11 +5,22 @@
<link>https://h.cowbay.org/</link>
<description>Recent content on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 17 May 2019 12:18:54 +0800</lastBuildDate>
<lastBuildDate>Tue, 21 May 2019 17:25:15 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</title>
<link>https://h.cowbay.org/post/change-timezone-in-docker/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/post/change-timezone-in-docker/</guid>
<description>&lt;p&gt;最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致&lt;/p&gt;
&lt;p&gt;有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&amp;hellip;.&lt;/p&gt;</description>
</item>
<item>
<title>Transfer File Content Using Xclip in Terminal</title>
<link>https://h.cowbay.org/post/transfer-file-content-using-xclip-in-terminal/</link>

@ -95,6 +95,87 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-2.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta">
<span class="date moment">2018-12-13</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/freenas">freenas</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/">
@ -894,86 +975,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
@ -1007,6 +1008,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -1031,10 +1036,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -1045,7 +1046,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -95,6 +95,86 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/">
@ -374,6 +454,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -398,10 +482,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -412,7 +492,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -415,6 +415,10 @@ TCP window size: 85.0 KByte (default)
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -439,10 +443,6 @@ TCP window size: 85.0 KByte (default)
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -453,7 +453,7 @@ TCP window size: 85.0 KByte (default)
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -218,6 +218,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -242,10 +246,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -256,7 +256,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -329,6 +329,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -353,10 +357,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -367,7 +367,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -284,6 +284,10 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -308,10 +312,6 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -322,7 +322,7 @@ b8d74048eba1 mysql:5.7.21 &quot;docker-entrypoint.s…&qu
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -258,6 +258,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -282,10 +286,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -296,7 +296,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -0,0 +1,520 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta name="generator" content="Hugo 0.50" />
<title> [筆記] 修改 docker 容器內的時區 - Change Timezone in Docker | MCの飄狂山莊㊣</title>
<meta name="description" content="[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker - Whats the Worst That Could Happen?">
<meta itemprop="name" content="[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker">
<meta itemprop="description" content="[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker - Whats the Worst That Could Happen?">
<meta property="og:title" content="[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker">
<meta property="og:description" content="[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://h.cowbay.org/images/post-default-3.jpg">
<meta property="og:url" content="https://h.cowbay.org/post/change-timezone-in-docker/">
<meta property="og:site_name" content="MCの飄狂山莊㊣">
<meta property="og:type" content="article">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf single">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<p>
之前因為沒有要上線,所以這個問題可以當烏龜忽略過去</p>
<p>不過測試了一陣子的librenms 打算正式上線了</p>
<p>又不想重作一次,導致累積滿久的圖表資料都消失</p>
<p>所以開始找尋方法來面對這個問題</p>
<p>本來看了這篇 <a href="https://www.arthurtoday.com/2016/07/how-to-setup-docker-container-timezone-host.html">https://www.arthurtoday.com/2016/07/how-to-setup-docker-container-timezone-host.html</a></p>
<p>想說來試試看好了</p>
<p>不過呢一開始依照這篇的說明在docker-compose.yml 內加入</p>
<pre><code>web:
image: jarischaefer/docker-librenms
hostname: librenms
ports:
- &quot;8001:80&quot;
- &quot;44301:443&quot;
volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=&quot;Asia/Taipei&quot;
</code></pre>
<p>重起之後沒作用 0rz</p>
<p>於是我又加入了</p>
<pre><code> volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
</code></pre>
<p>結果啟動直接報錯誤了..</p>
<p>看一下 log</p>
<pre><code>May 21 09:09:12 bbs012 syslog-ng[12]: syslog-ng starting up; version='3.13.2'
*** Running /etc/my_init.d/librenms_100_cron...
*** Running /etc/my_init.d/librenms_101_ssl...
*** Running /etc/my_init.d/librenms_102_ipv6...
*** Running /etc/my_init.d/librenms_103_timezone...
/etc/my_init.d/librenms_103_timezone: line 4: /etc/timezone: Read-only file system
*** /etc/my_init.d/librenms_103_timezone failed with status 1
*** Killing all processes...
</code></pre>
<p>所以這個檔案不能改成 ro 不過如果不能唯獨那啟動docker的時候應該會被蓋掉吧</p>
<p>先來看一下那個 librenms_103_timezone 在幹什麼好了</p>
<pre><code>docker exec -it librenms_web_1 cat /etc/my_init.d/librenms_103_timezone
#!/bin/bash -e
if [ -n &quot;$TZ&quot; ]; then
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime &amp;&amp; echo $TZ &gt; /etc/timezone
if [ ! -f /etc/php/7.3/cli/conf.d/100-timezone.ini ]; then
echo &quot;date.timezone=$TZ&quot; &gt; /etc/php/7.3/cli/conf.d/100-timezone.ini
fi
if [ ! -f /etc/php/7.3/fpm/conf.d/100-timezone.ini ]; then
echo &quot;date.timezone=$TZ&quot; &gt; /etc/php/7.3/fpm/conf.d/100-timezone.ini
fi
fi
2019-05-21 17:33:46 [mini@s013 librenms]$
</code></pre>
<p>OK ,這裡的確是用傳進來的 $TZ 在設定timezone 沒錯</p>
<p>可是我前面已經改過 docker-compose.yml</p>
<p>有把 TZ帶進來了啊再來確認一下</p>
<pre><code>docker exec -it librenms_web_1 cat /etc/timezone
&quot;Asia/Taipei&quot;
</code></pre>
<p>咦,沒錯啊? 欸斗,等等,那兩個 &ldquo;&rdquo; 有點刺眼&hellip;</p>
<p>跟本機的比對一下看看</p>
<pre><code>2019-05-21 17:36:20 [mini@s013 librenms]$ docker exec -it librenms_web_1 cat /etc/timezone
&quot;Asia/Taipei&quot;
2019-05-21 17:36:23 [mini@s013 librenms]$ cat /etc/timezone
Asia/Taipei
2019-05-21 17:37:10 [mini@s013 librenms]$
</code></pre>
<p>嗯,的確,本機的格式的確不包含那兩個 &ldquo;&rdquo;</p>
<p>那就改掉再來試試看吧&hellip;改成底下這樣</p>
<pre><code> environment:
- TZ=Asia/Taipei
</code></pre>
<p>重起 docker ,然後確認時間看看</p>
<pre><code>2019-05-21 17:39:00 [mini@s013 librenms]$ docker-compose down;docker-compose up -d
Stopping librenms_web_1 ... done
Stopping librenms_mysql_1 ... done
Removing librenms_web_1 ... done
Removing librenms_mysql_1 ... done
Removing network librenms_default
Creating network &quot;librenms_default&quot; with the default driver
Creating librenms_mysql_1 ... done
Creating librenms_web_1 ... done
2019-05-21 17:39:22 [mini@s013 librenms]$ docker exec -it librenms_web_1 cat /etc/timezone
Asia/Taipei
2019-05-21 17:39:42 [mini@s013 librenms]$ docker exec -it librenms_web_1 date
Tue May 21 17:39:48 CST 2019
2019-05-21 17:39:48 [mini@s013 librenms]$
</code></pre>
<p>OK ,果然沒有問題了!</p>
<p>雖然是小小的&rdquo;&rdquo; ,還是要特別注意啊!</p>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div id="disqus_thread"></div>
<script type="application/javascript">
var disqus_config = function () {
};
(function() {
if (["localhost", "127.0.0.1"].indexOf(window.location.hostname) != -1) {
document.getElementById('disqus_thread').innerHTML = 'Disqus comments not available by default when the website is previewed locally.';
return;
}
var d = document, s = d.createElement('script'); s.async = true;
s.src = '//' + "h-cowbay-org-1" + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
<li>
<a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a>
</li>
<li>
<a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a>
</li>
<li>
<a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a>
</li>
<li>
<a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a>
</li>
<li>
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
</div>
<div class="author">
<a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -392,6 +392,10 @@ openssl s_client -showcerts -connect mail.example.com:465
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -416,10 +420,6 @@ openssl s_client -showcerts -connect mail.example.com:465
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -430,7 +430,7 @@ openssl s_client -showcerts -connect mail.example.com:465
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -216,6 +216,10 @@ GRANT a TO b;
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -240,10 +244,6 @@ GRANT a TO b;
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -254,7 +254,7 @@ GRANT a TO b;
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -229,6 +229,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -253,10 +257,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -267,7 +267,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -302,6 +302,10 @@ admin@storage:~$
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -326,10 +330,6 @@ admin@storage:~$
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -340,7 +340,7 @@ admin@storage:~$
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -249,6 +249,10 @@ root@pve:~#
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -273,10 +277,6 @@ root@pve:~#
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -287,7 +287,7 @@ root@pve:~#
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -272,6 +272,10 @@ unused devices: &lt;none&gt;
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -296,10 +300,6 @@ unused devices: &lt;none&gt;
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -310,7 +310,7 @@ unused devices: &lt;none&gt;
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,81 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/change-timezone-in-docker/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/transfer-file-content-using-xclip-in-terminal/">
@ -773,85 +848,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-2.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta">
<span class="date moment">2018-12-13</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/freenas">freenas</a>
</div>
</div>
</div>
</article>
@ -882,6 +878,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -906,10 +906,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -920,7 +916,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -5,11 +5,22 @@
<link>https://h.cowbay.org/post/</link>
<description>Recent content in Posts on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Fri, 17 May 2019 12:18:54 +0800</lastBuildDate>
<lastBuildDate>Tue, 21 May 2019 17:25:15 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/post/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</title>
<link>https://h.cowbay.org/post/change-timezone-in-docker/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/post/change-timezone-in-docker/</guid>
<description>&lt;p&gt;最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致&lt;/p&gt;
&lt;p&gt;有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&amp;hellip;.&lt;/p&gt;</description>
</item>
<item>
<title>Transfer File Content Using Xclip in Terminal</title>
<link>https://h.cowbay.org/post/transfer-file-content-using-xclip-in-terminal/</link>

@ -774,6 +774,10 @@ sudo apt install joe-jupp
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -798,10 +802,6 @@ sudo apt install joe-jupp
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -812,7 +812,7 @@ sudo apt install joe-jupp
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -234,6 +234,10 @@ GRUB_CMDLINE_LINUX=&quot;rootdelay=90&quot;
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -258,10 +262,6 @@ GRUB_CMDLINE_LINUX=&quot;rootdelay=90&quot;
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -272,7 +272,7 @@ GRUB_CMDLINE_LINUX=&quot;rootdelay=90&quot;
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -320,6 +320,10 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -344,10 +348,6 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -358,7 +358,7 @@ bbs089.abc.com ansible_ssh_host=192.168.0.89 ansible_ssh_user=root
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -253,6 +253,10 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -277,10 +281,6 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -291,7 +291,7 @@ Apr 23 15:18:48 hqs010 minion: minion [30832]: ip addr [0]
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -251,6 +251,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -275,10 +279,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -289,7 +289,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,85 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/smartd-failed-to-start-in-freenas/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/smartd-failed-to-start-in-freenas/">
<img src="/images/post-default-2.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/smartd-failed-to-start-in-freenas/">[筆記] Freenas Smartd 啟動失敗 Smartd Failed to Start in Freenas</a></h3>
<div class="meta">
<span class="date moment">2018-12-13</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>這兩天在弄兩台Freenas 準備當作Proxmox 的Storage &amp; Server Backup</p>
<p>因為伺服器的限制只能接六個SATA我接了六個2T的硬碟做raid10</p>
<p>然後把Freenas 安裝在隨身碟上</p>
<p>不過會一直出現Smartd failed to start 的錯誤訊息</p>
<p></p>
<a href="/post/smartd-failed-to-start-in-freenas/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/freenas">freenas</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/incredibly-slow-mdadm-rebuild/">
@ -873,84 +952,6 @@
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
@ -983,6 +984,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -1007,10 +1012,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -1021,7 +1022,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,84 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/nice-du-report-tool-durep/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/nice-du-report-tool-durep/">
<img src="/images/post-default-9.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/nice-du-report-tool-durep/">Nice Du Report Tool Durep</a></h3>
<div class="meta">
<span class="date moment">2018-11-06</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近在重新規劃前人留下的backup爛攤子
各個伺服器統一備份到一台backup storage
想說如果每天能夠看到backup storage的磁碟用量的話
就可以抓出備份空間成長速度、推估需要多大的磁碟空間
找了一些工具,結果發現 durep 這個 ubuntu 內建的工具
基本上可以滿足我的需求</p>
<a href="/post/nice-du-report-tool-durep/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/linux">linux</a>
<a href="/tags/du">du</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/">
@ -296,6 +374,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -320,10 +402,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -334,7 +412,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -214,6 +214,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -238,10 +242,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -252,7 +252,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -264,6 +264,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -288,10 +292,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -302,7 +302,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -579,6 +579,10 @@ df -h
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -603,10 +607,6 @@ df -h
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -617,7 +617,7 @@ df -h
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -263,6 +263,10 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -287,10 +291,6 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -301,7 +301,7 @@ Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -326,6 +326,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -350,10 +354,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -364,7 +364,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -295,6 +295,10 @@ acl CONNECT method CONNECT
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -319,10 +323,6 @@ acl CONNECT method CONNECT
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -333,7 +333,7 @@ acl CONNECT method CONNECT
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -14,7 +14,7 @@
<sitemap>
<loc>https://h.cowbay.org/tw/sitemap.xml</loc>
<lastmod>2019-05-17T12:18:54+08:00</lastmod>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
</sitemap>

@ -204,6 +204,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -228,10 +232,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -242,7 +242,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -306,6 +306,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -330,10 +334,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -344,7 +344,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -192,6 +192,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -216,10 +220,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -230,7 +230,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -202,6 +202,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -226,10 +230,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -240,7 +240,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -196,6 +196,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -220,10 +224,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -234,7 +234,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -187,6 +187,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -211,10 +215,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -225,7 +225,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -90,6 +90,81 @@
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/change-timezone-in-docker/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/bookstack-docker/">
@ -202,6 +277,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -226,10 +305,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -240,7 +315,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -5,11 +5,22 @@
<link>https://h.cowbay.org/tags/docker/</link>
<description>Recent content in Docker on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Tue, 06 Nov 2018 14:57:14 +0800</lastBuildDate>
<lastBuildDate>Tue, 21 May 2019 17:25:15 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/docker/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</title>
<link>https://h.cowbay.org/post/change-timezone-in-docker/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/post/change-timezone-in-docker/</guid>
<description>&lt;p&gt;最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致&lt;/p&gt;
&lt;p&gt;有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&amp;hellip;.&lt;/p&gt;</description>
</item>
<item>
<title>Bookstack Docker</title>
<link>https://h.cowbay.org/post/bookstack-docker/</link>

@ -189,6 +189,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -213,10 +217,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -227,7 +227,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -194,6 +194,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -218,10 +222,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -232,7 +232,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -190,6 +190,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -214,10 +218,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -228,7 +228,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -113,7 +113,7 @@
<li><a href="/tags/centos">Centos (1)</a></li>
<li><a href="/tags/docker">Docker (1)</a></li>
<li><a href="/tags/docker">Docker (2)</a></li>
<li><a href="/tags/du">Du (1)</a></li>
@ -145,6 +145,8 @@
<li><a href="/tags/synology">Synology (2)</a></li>
<li><a href="/tags/timezone">Timezone (1)</a></li>
<li><a href="/tags/ubuntu">Ubuntu (4)</a></li>
<li><a href="/tags/vim">Vim (1)</a></li>
@ -174,6 +176,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -198,10 +204,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -212,7 +214,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -67,7 +67,7 @@
<item>
<title>Docker</title>
<link>https://h.cowbay.org/tags/docker/</link>
<pubDate>Tue, 06 Nov 2018 14:57:14 +0800</pubDate>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/tags/docker/</guid>
<description></description>
@ -208,6 +208,15 @@
<description></description>
</item>
<item>
<title>Timezone</title>
<link>https://h.cowbay.org/tags/timezone/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/tags/timezone/</guid>
<description></description>
</item>
<item>
<title>Ubuntu</title>
<link>https://h.cowbay.org/tags/ubuntu/</link>

@ -196,6 +196,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -220,10 +224,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -234,7 +234,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -547,6 +547,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -571,10 +575,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -585,7 +585,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -190,6 +190,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -214,10 +218,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -228,7 +228,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -192,6 +192,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -216,10 +220,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -230,7 +230,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -204,6 +204,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -228,10 +232,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -242,7 +242,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -194,6 +194,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -218,10 +222,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -232,7 +232,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -294,6 +294,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -318,10 +322,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -332,7 +332,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -179,6 +179,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -203,10 +207,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -192,6 +192,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -216,10 +220,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -230,7 +230,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -190,6 +190,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -214,10 +218,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -228,7 +228,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -203,6 +203,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -227,10 +231,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -241,7 +241,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -294,6 +294,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -318,10 +322,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -332,7 +332,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -0,0 +1,386 @@
<!doctype html>
<html class="no-js" lang="tw">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Eric Chang">
<meta name="description" content="Whats the Worst That Could Happen?">
<meta name="keywords" content="linux,blog,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts">
<meta name="generator" content="Hugo 0.50" />
<title> Timezone | MCの飄狂山莊㊣</title>
<meta name="description" content="Timezone - Whats the Worst That Could Happen?">
<meta itemprop="name" content="Timezone">
<meta itemprop="description" content="Timezone - Whats the Worst That Could Happen?">
<meta property="og:title" content="Timezone">
<meta property="og:description" content="Timezone - Whats the Worst That Could Happen?">
<meta property="og:image" content="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?size=200">
<meta property="og:url" content="https://h.cowbay.org/tags/timezone/">
<meta property="og:site_name" content="MCの飄狂山莊㊣"><meta property="og:type" content="website">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="https://h.cowbay.org/favicon-16x16.png" sizes="16x16">
<link href="https://h.cowbay.org/tags/timezone/index.xml" rel="alternate" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link href="https://h.cowbay.org/tags/timezone/index.xml" rel="feed" type="application/rss+xml" title="MCの飄狂山莊㊣" />
<link rel="stylesheet" href="https://h.cowbay.org/sass/combined.min.a89dfa577f701bffe9659f476ef61241cb2a3452b913e793463b0074a10c0a59.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="bilberry-hugo-theme">
<nav class="permanentTopNav">
<div class="container">
<ul class="topnav">
</ul>
<div id="search-box" class="search">
<i class="fa fa-search"></i>
<input id="search" type="text" placeholder="">
</div>
</div>
</nav>
<header>
<div class="container">
<div class="logo">
<a href="/" class="logo">
<img src="https://www.gravatar.com/avatar/e4eb1f8e016ffb73e9889f87d16e15f0?d=mm&size=200" alt="">
<span class="overlay"><i class="fa fa-home"></i></span>
</a>
</div>
<div class="titles">
<h3 class="title"><a href="/">MCの飄狂山莊㊣</a></h3>
<span class="subtitle">Whats the Worst That Could Happen?</span>
</div>
<div class="toggler permanentTopNav">
<i class="fa fa-bars" aria-hidden="true"></i>
</div>
</div>
</header>
<div class="main container">
<div class="article-wrapper u-cf">
<a class="bubble" href="/post/change-timezone-in-docker/">
<i class="fa fa-fw fa-pencil"></i>
</a>
<article class="default article">
<div class="featured-image">
<a href="/post/change-timezone-in-docker/">
<img src="/images/post-default-3.jpg" alt="">
</a>
</div>
<div class="content">
<h3><a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a></h3>
<div class="meta">
<span class="date moment">2019-05-21</span>
<span class="categories">
<a href="/categories/%E7%AD%86%E8%A8%98">筆記</a>
</span>
<span class="author"><a href="/author/eric-chang">Eric Chang</a></span>
</div>
<p>最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致</p>
<p>有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&hellip;.</p>
<a href="/post/change-timezone-in-docker/" class="more"></a>
</div>
<div class="footer">
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
<a href="/tags/docker">docker</a>
<a href="/tags/timezone">timezone</a>
</div>
</div>
</div>
</article>
</div>
<div class="paginator">
</div>
</div>
<footer>
<div class="container">
<div class="recent-posts">
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
<li>
<a href="/post/inx-collect-detail-hardware-info/">[筆記] inxi 蒐集詳盡的硬體資訊 / inxi Collect Detail Hardware Info</a>
</li>
<li>
<a href="/post/log-all-bash-commands/">[筆記] 紀錄所有下過的指令、時間 / Log All commands with timestamp</a>
</li>
<li>
<a href="/post/fix-zpool-device-busy-using-dmsetup/">[筆記] 解決無法建立zpool 的錯誤 / Fix Zpool Device Busy Using dmsetup</a>
</li>
<li>
<a href="/post/transfer-cent62-using-rsync/">[筆記] 用rsync 移轉 centos 6.2的老機器 Transfer Cent6.2 using rsync</a>
</li>
<li>
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
</ul>
</div>
<div class="categories">
<a href="/categories/"><strong></strong></a>
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>
<a href="/categories/linux">Linux (1)</a>
</li>
<li>
<a href="/categories/ps">Ps (1)</a>
</li>
<li>
<a href="/categories/%E7%A2%8E%E5%BF%B5">碎念 (1)</a>
</li>
<li>
<a href="/categories/%E7%BE%A4%E6%9A%89">群暉 (1)</a>
</li>
</ul>
</div>
<div class="right">
<div class="external-profiles">
<strong></strong>
<a href="https://www.facebook.com/mariahchang" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
<a href="https://twitter.com/changchichung" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
<a href="https://github.com/changchichung" target="_blank"><i class="fa fa-github"></i></a>
</div>
</div>
</div>
</footer>
<div class="credits">
<div class="container">
<div class="copyright">
<a href="https://github.com/Lednerb" target="_blank">
&copy;
2017
by Lednerb
</a>
-
<a href="https://h.cowbay.org/tags/timezone/index.xml">RSS</a>
</div>
<div class="author">
<a href="https://github.com/Lednerb/bilberry-hugo-theme" target="_blank">Bilberry Hugo Theme</a>
</div>
</div>
</div>
<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-138954876-1', 'auto');
ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
<script type="text/javascript" src="https://h.cowbay.org/js/externalDependencies.39c47e10e241eae2947b3fe21809c572.js" integrity="md5-OcR&#43;EOJB6uKUez/iGAnFcg=="></script>
<script type="text/javascript" src="https://h.cowbay.org/js/theme.ff50ae6dc1bfc220b23bf69dbb41b54e.js" integrity="md5-/1CubcG/wiCyO/adu0G1Tg=="></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( "tw" )
.format('LL')
);
});
$(".footnote-return sup").html("");
</script>
<script>
var client = algoliasearch("2XL0P8XDCY", "4ef65b37b627bb886b46c34a10e63aa6");
var index = client.initIndex("h_cowbay_org");
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'></span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="https:\/\/h.cowbay.org\/dist\/algolia-logo-light.svg" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>
</body>
</html>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Timezone on MCの飄狂山莊㊣</title>
<link>https://h.cowbay.org/tags/timezone/</link>
<description>Recent content in Timezone on MCの飄狂山莊㊣</description>
<generator>Hugo -- gohugo.io</generator>
<lastBuildDate>Tue, 21 May 2019 17:25:15 +0800</lastBuildDate>
<atom:link href="https://h.cowbay.org/tags/timezone/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</title>
<link>https://h.cowbay.org/post/change-timezone-in-docker/</link>
<pubDate>Tue, 21 May 2019 17:25:15 +0800</pubDate>
<guid>https://h.cowbay.org/post/change-timezone-in-docker/</guid>
<description>&lt;p&gt;最近一直在玩一些docker不過老是會碰到歪果扔寫的東西時區都不一致&lt;/p&gt;
&lt;p&gt;有的用 UTC有的用localtime就是沒碰到用 Asia/Taipei 的&amp;hellip;.&lt;/p&gt;</description>
</item>
</channel>
</rss>

@ -0,0 +1 @@
<!DOCTYPE html><html><head><title>https://h.cowbay.org/tags/timezone/</title><link rel="canonical" href="https://h.cowbay.org/tags/timezone/"/><meta name="robots" content="noindex"><meta charset="utf-8" /><meta http-equiv="refresh" content="0; url=https://h.cowbay.org/tags/timezone/" /></head></html>

@ -432,6 +432,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -456,10 +460,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -470,7 +470,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -190,6 +190,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -214,10 +218,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -228,7 +228,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -188,6 +188,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -212,10 +216,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -226,7 +226,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -179,6 +179,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -203,10 +207,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -217,7 +217,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -547,6 +547,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -571,10 +575,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -585,7 +585,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -202,6 +202,10 @@
<strong></strong>
<ul>
<li>
<a href="/post/change-timezone-in-docker/">[筆記] 修改 docker 容器內的時區 - Change Timezone in Docker</a>
</li>
<li>
<a href="/post/transfer-file-content-using-xclip-in-terminal/">Transfer File Content Using Xclip in Terminal</a>
</li>
@ -226,10 +230,6 @@
<a href="/post/command_to_test_main_ssl/">[筆記] 測試mail server 的SSL憑證的指令 Command to test mailserver SSL</a>
</li>
<li>
<a href="/post/install-timeshift-on-ubuntu1804/">Install Timeshift on Ubuntu1804</a>
</li>
</ul>
</div>
@ -240,7 +240,7 @@
<ul>
<li>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (18)</a>
<a href="/categories/%E7%AD%86%E8%A8%98">筆記 (19)</a>
</li>
<li>

@ -2,6 +2,11 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://h.cowbay.org/post/change-timezone-in-docker/</loc>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
</url>
<url>
<loc>https://h.cowbay.org/post/transfer-file-content-using-xclip-in-terminal/</loc>
<lastmod>2019-05-17T12:18:54+08:00</lastmod>
@ -195,7 +200,7 @@
<url>
<loc>https://h.cowbay.org/tags/docker/</loc>
<lastmod>2018-11-06T14:57:14+08:00</lastmod>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
<priority>0</priority>
</url>
@ -207,7 +212,7 @@
<url>
<loc>https://h.cowbay.org/author/eric-chang/</loc>
<lastmod>2019-05-17T12:18:54+08:00</lastmod>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
<priority>0</priority>
</url>
@ -255,7 +260,7 @@
<url>
<loc>https://h.cowbay.org/</loc>
<lastmod>2019-05-17T12:18:54+08:00</lastmod>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
<priority>0</priority>
<xhtml:link
rel="alternate"
@ -300,7 +305,7 @@
<url>
<loc>https://h.cowbay.org/post/</loc>
<lastmod>2019-05-17T12:18:54+08:00</lastmod>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
<priority>0</priority>
</url>
@ -361,6 +366,12 @@
/>
</url>
<url>
<loc>https://h.cowbay.org/tags/timezone/</loc>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://h.cowbay.org/tags/ubuntu/</loc>
<lastmod>2019-03-11T14:02:30+08:00</lastmod>
@ -399,7 +410,7 @@
<url>
<loc>https://h.cowbay.org/categories/%E7%AD%86%E8%A8%98/</loc>
<lastmod>2019-04-23T15:28:56+08:00</lastmod>
<lastmod>2019-05-21T17:25:15+08:00</lastmod>
<priority>0</priority>
</url>

Loading…
Cancel
Save