<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker on Huabing Blog</title><link>/tags/docker/</link><description>Recent content in Docker on Huabing Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 13 Mar 2018 18:00:00 +0000</lastBuildDate><atom:link href="/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>如何配置docker使用HTTP代理</title><link>/2018/03/13/use-docker-behind-http-proxy/</link><pubDate>Tue, 13 Mar 2018 18:00:00 +0000</pubDate><guid>/2018/03/13/use-docker-behind-http-proxy/</guid><description>&lt;h2 id="ubuntu"&gt;Ubuntu&lt;/h2&gt;&#10;&lt;h3 id="设置docker使用http-proxy"&gt;设置docker使用http proxy&lt;/h3&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;sudo /etc/default/docker&#10;&#10;export http_proxy=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;export https_proxy=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;export HTTP_PROXY=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;export HTTPS_PROXY=&amp;#34;http://127.0.0.1:3128/&amp;#34;&#10;&lt;/code&gt;&lt;/pre&gt;</description></item><item><title>如何使用非root用户执行docker命令</title><link>/2018/02/09/docker-without-sudo/</link><pubDate>Fri, 09 Feb 2018 10:00:00 +0000</pubDate><guid>/2018/02/09/docker-without-sudo/</guid><description>&lt;h3 id="add-the-docker-group-if-it-doesnt-already-exist"&gt;Add the docker group if it doesn&amp;rsquo;t already exist:&lt;/h3&gt;&#10;&lt;p&gt;sudo groupadd docker&lt;/p&gt;&#10;&lt;h3 id="add-the-connected-user-user-to-the-docker-group-change-the-user-name-to-match-your-preferred-user-if-you-do-not-want-to-use-your-current-user"&gt;Add the connected user &amp;ldquo;$USER&amp;rdquo; to the docker group. Change the user name to match your preferred user if you do not want to use your current user:&lt;/h3&gt;&#10;&lt;p&gt;sudo gpasswd -a $USER docker&lt;/p&gt;&#10;&lt;h3 id="either-do-a-newgrp-docker-or-log-outin-to-activate-the-changes-to-groups"&gt;Either do a newgrp docker or log out/in to activate the changes to groups.&lt;/h3&gt;</description></item></channel></rss>