<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Peter</title>
    <description>The latest articles on DEV Community by Peter (@zyfa).</description>
    <link>https://dev.to/zyfa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F60043%2Fe4c7bfb1-7075-4c93-9cc7-6e55b9b3ebae.jpg</url>
      <title>DEV Community: Peter</title>
      <link>https://dev.to/zyfa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zyfa"/>
    <language>en</language>
    <item>
      <title>Setup the proxy for Dockerfile building</title>
      <dc:creator>Peter</dc:creator>
      <pubDate>Thu, 01 Mar 2018 08:10:50 +0000</pubDate>
      <link>https://dev.to/zyfa/setup-the-proxy-for-dockerfile-building--4jc8</link>
      <guid>https://dev.to/zyfa/setup-the-proxy-for-dockerfile-building--4jc8</guid>
      <description>&lt;p&gt;If we just need to pull or push the docker image, it is fine to set up the proxy by system service conf file. But this proxy setting seems don't work when building the Dockerfile. We have tried to modify the /etc/default/docker configuration, but this seems also do not work. By looking a lot of answers from StackOverflow, we finally found the right setting to set the proxy.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;docker build --build-arg http_proxy=http://10.239.4.80:913 --build-arg https_proxy=http://10.239.4.80:913 .&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;10.239.4.80:913 is the proxy address of my company, you may need to change according to your company proxy address and port.&lt;/p&gt;

&lt;p&gt;You also can set the proxy in the Dockerfile.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ENV http_proxy 10.239.4.80:913&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;But this method is not recommended in my opinion, since the end-users may directly connect to the internet rather than by proxy.&lt;/p&gt;

</description>
      <category>docker</category>
    </item>
    <item>
      <title>The first dev post title</title>
      <dc:creator>Peter</dc:creator>
      <pubDate>Wed, 28 Feb 2018 12:24:14 +0000</pubDate>
      <link>https://dev.to/zyfa/the-first-dev-post-title--20lj</link>
      <guid>https://dev.to/zyfa/the-first-dev-post-title--20lj</guid>
      <description>&lt;p&gt;Hello, world.&lt;/p&gt;

</description>
      <category>hello</category>
    </item>
  </channel>
</rss>
