<?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: kohbis</title>
    <description>The latest articles on DEV Community by kohbis (@kohbis).</description>
    <link>https://dev.to/kohbis</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%2F407308%2F898e8079-b64e-4e24-bff0-5a85173d7a59.jpeg</url>
      <title>DEV Community: kohbis</title>
      <link>https://dev.to/kohbis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kohbis"/>
    <language>en</language>
    <item>
      <title>【Tips】Connect Host OS proccess by localhost from within Docker container</title>
      <dc:creator>kohbis</dc:creator>
      <pubDate>Mon, 22 Mar 2021 04:09:03 +0000</pubDate>
      <link>https://dev.to/kohbis/tips-connect-host-os-proccess-by-localhost-from-within-docker-container-2916</link>
      <guid>https://dev.to/kohbis/tips-connect-host-os-proccess-by-localhost-from-within-docker-container-2916</guid>
      <description>&lt;p&gt;Tips for connecting Host OS process by &lt;code&gt;localhost&lt;/code&gt; from within Docker container.&lt;/p&gt;

&lt;p&gt;This is used when the container is running without using &lt;code&gt;docker-compose&lt;/code&gt; for each process.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;docker run &lt;span class="nt"&gt;-it&lt;/span&gt; &lt;span class="nt"&gt;--rm&lt;/span&gt; &lt;span class="nt"&gt;--add-host&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;localhost:&lt;span class="si"&gt;$(&lt;/span&gt;ipconfig getifaddr en0&lt;span class="si"&gt;)&lt;/span&gt; IMAGE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Incidentally, if you don't use &lt;code&gt;localhost&lt;/code&gt; and you are using Docker Desktop for Mac, you can connect using the DNS name &lt;code&gt;host.docker.internal&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>tips</category>
    </item>
  </channel>
</rss>
