<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ruslan&#39;s Tech Blog</title>
    <link>https://blog.bekenev.net/tags/docker-wsl.html</link>
    <description>Software development related stuff</description>
    <language>en-us</language>
    <lastBuildDate>Thu, 25 Jan 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bekenev.net/tags/docker-wsl/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Docker volumes, WSL and Docker for Windows [memo]</title>
      <link>https://blog.bekenev.net/2018/01/25/fix-wsl-docker-volumes.html</link>
      <pubDate>Thu, 25 Jan 2018 00:00:00 +0000</pubDate>
      <guid>https://blog.bekenev.net/2018/01/25/fix-wsl-docker-volumes.html</guid>
      <description>&lt;p&gt;Hey.&lt;/p&gt;&#xA;&lt;p&gt;While I&amp;rsquo;m on Windows I do use Docker for Windows. It&amp;rsquo;s running on my host machine but I&amp;rsquo;m running&#xA;docker commands from WSL (Windows Linux subsystem).&lt;/p&gt;&#xA;&lt;p&gt;While running it from there the volumes I&amp;rsquo;m trying to mount into the container won&amp;rsquo;t work.&lt;/p&gt;&#xA;&lt;p&gt;So the solution is (assume everything you want to mount is on disk C):&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo mkdir /c&lt;/code&gt; - to create a directory named &lt;code&gt;c&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;sudo mount --bind /mnt/c /c&lt;/code&gt; - mount existing &lt;code&gt;/mnt/c&lt;/code&gt; into &lt;code&gt;/c&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;cd /c/path/to/project&lt;/code&gt; - go to the project&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;docker run -it -v $(pwd):/project node bash&lt;/code&gt; - it WORKS!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The solution has been found here - &lt;a href=&#34;https://github.com/Microsoft/WSL/issues/1854&#34;&gt;https://github.com/Microsoft/WSL/issues/1854&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&amp;lt;3&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
