<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yu-Zhen Chen on Medium]]></title>
        <description><![CDATA[Stories by Yu-Zhen Chen on Medium]]></description>
        <link>https://medium.com/@tp6m35p4?source=rss-9188e157420d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ir6vWhaX38FDsGaQmCOwxw.jpeg</url>
            <title>Stories by Yu-Zhen Chen on Medium</title>
            <link>https://medium.com/@tp6m35p4?source=rss-9188e157420d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:22:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tp6m35p4/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[在CentOS 7上透過yum安裝Docker]]></title>
            <link>https://medium.com/@tp6m35p4/%E5%9C%A8centos-7%E4%B8%8A%E9%80%8F%E9%81%8Eyum%E5%AE%89%E8%A3%9Ddocker-6f764c191709?source=rss-9188e157420d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f764c191709</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[centos7]]></category>
            <dc:creator><![CDATA[Yu-Zhen Chen]]></dc:creator>
            <pubDate>Mon, 13 May 2019 16:18:36 GMT</pubDate>
            <atom:updated>2019-05-13T16:28:14.012Z</atom:updated>
            <content:encoded><![CDATA[<p>這個教學是用於安裝<a href="https://docs.docker.com/install/">Docker CE</a>於CentOs 7上。</p><h3>第0步 移除舊版</h3><p>這個步驟用於移除作業系統上舊版的Docker，就算你不確定你的作業系統上有沒有安裝舊版Docker，可以運行以下的指令確保沒有存在舊版的Docker。</p><pre>$ sudo yum remove docker \<br>                  docker-client \<br>                  docker-client-latest \<br>                  docker-common \<br>                  docker-latest \<br>                  docker-latest-logrotate \<br>                  docker-logrotate \<br>                  docker-engine</pre><h3>第1步 安裝必要軟體</h3><pre>$ sudo yum install -y yum-utils \<br>  device-mapper-persistent-data \<br>  lvm2</pre><h3>第2步 增加Docker Repo到yum中</h3><pre>$ sudo yum-config-manager \<br>    --add-repo \<br>    https://download.docker.com/linux/centos/docker-ce.repo</pre><h3>第3步 安裝Docker CE</h3><pre>$ sudo yum install docker-ce docker-ce-cli containerd.io</pre><h3>第4步 啟動Docker</h3><pre>$ sudo systemctl start docker</pre><h3>完成</h3><p>到這裡已經完成Docker的安裝，接下來為不一定需要做的步驟，但是是我在安裝完後一定會做的步驟</p><h3>預設開機自動啟動Docker</h3><pre>$ sudo systemctl enable docker</pre><h3>設定為可以不用透過root就可以管理Docker</h3><p>新增docker使用者群組</p><pre>$ sudo groupadd docker</pre><p>將目前登入的使用者加進去</p><pre>$ sudo usermod -aG docker $USER</pre><h3>驗證</h3><p>透過運行docker hello-world映象檔來驗證Docker是否安裝成功</p><pre>$ sudo docker run hello-world<br>//沒有設定不用root就可以運行docker</pre><pre>$ docker run hello-world<br>//有設定不用root就可以運行docker</pre><h3>參考資料</h3><ul><li><a href="https://docs.docker.com/install/linux/docker-ce/centos/">Get Docker Engine - Community for CentOS</a></li><li><a href="https://docs.docker.com/install/linux/linux-postinstall/">Post-installation steps for Linux</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f764c191709" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>