<?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[boot2docker — Lightweight Linux for Docker - Medium]]></title>
        <description><![CDATA[Boot2Docker is a lightweight Linux distribution made specifically to run Docker containers. It runs completely from RAM, is a small ~24MB download and boots in ~5s (YMMV). - Medium]]></description>
        <link>https://medium.com/boot2docker-lightweight-linux-for-docker?source=rss----440914109e35---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>boot2docker — Lightweight Linux for Docker - Medium</title>
            <link>https://medium.com/boot2docker-lightweight-linux-for-docker?source=rss----440914109e35---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 12:43:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/boot2docker-lightweight-linux-for-docker" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[boot2docker together with VirtualBox Guest Additions]]></title>
            <link>https://medium.com/boot2docker-lightweight-linux-for-docker/boot2docker-together-with-virtualbox-guest-additions-da1e3ab2465c?source=rss----440914109e35---4</link>
            <guid isPermaLink="false">https://medium.com/p/da1e3ab2465c</guid>
            <dc:creator><![CDATA[Matt Kadenbach]]></dc:creator>
            <pubDate>Wed, 11 Jun 2014 02:07:35 GMT</pubDate>
            <atom:updated>2014-10-17T16:20:29.716Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/desat/multiply/blue/60/overlay/blue/1*ddgryf4_ztLYRWCS2gpZ-g.jpeg" /></figure><h4>How to mount /Users into boot2docker</h4><p>Using boot2docker with my Mac, I want to seamlessly run something like:</p><pre>docker run -i -t -v /Users/mattes/project1:/data/project1 ubuntu /bin/bash</pre><p>UPDATE 17 Oct 2014:</p><h3><strong>As of Docker version 1.3 the work-around described in this blog post becomes obsolete.</strong></h3><h4><strong>Please read more here: </strong><a href="https://blog.docker.com/2014/10/docker-1-3-signed-images-process-injection-security-options-mac-shared-directories/"><strong>https://blog.docker.com/2014/10/docker-1-3-signed-images-process-injection-security-options-mac-shared-directories</strong></a></h4><p><strong>tl;dr </strong>Build your own custom boot2docker.iso with VirtualBox Guest Additions (see <a href="https://gist.github.com/mattes/2d0ffd027cb16571895c#file-readme-md">link</a>) or download <a href="http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso"><strong>http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso</strong></a> and save it to <em>~/.boot2docker/boot2docker.iso</em>.</p><p>The issue is that boot2docker doesn’t support<br><em>-v /Users/mattes/project1:/data/project1 </em>out of the box since it doesn’t include <a href="https://www.virtualbox.org/manual/ch04.html#idp54846192">VirtualBox Guest Additions</a>. It’s still unclear to me, if the VirtualBox Guest Additions will make it into boot2docker any time soon/ ever.</p><blockquote>“we’re making boot2docker as simple and small as possible — so at this point, adding tools that are not relevant to all usecases (bare HW, <strong>vbox</strong>, vagrant, hyper-v, vmware, kvm, etc) is not on the plan. This may change in future, but we havn’t completed our original feature set yet.”</blockquote><p><a href="https://github.com/SvenDowideit">SvenDowideit</a> (boot2docker repo owner) commented on May 30 (<a href="https://github.com/boot2docker/boot2docker/issues/282#issuecomment-44601104">link</a>)</p><p>Though, there is a pull request to include VB guest additions, see <a href="https://github.com/boot2docker/boot2docker/pull/284">https://github.com/boot2docker/boot2docker/pull/284</a></p><p>So I tried to built my own <strong>custom boot2docker.iso </strong>following the steps from the pull request above. I ran into a lot of issues and problems, so I thought it would be nice to document the steps that worked out for me.</p><p><strong>Prerequisites: </strong>The following assumes you already have boot2docker installed. If not, follow <a href="http://docs.docker.com/installation/mac/">http://docs.docker.com/installation/mac</a> and use the Docker OSX Installer. Or use brew:</p><pre>brew install docker<br>brew install boot2docker</pre><p>Okay, so I basically build a new boot2docker.iso with this <a href="https://gist.github.com/mattes/2d0ffd027cb16571895c#file-dockerfile-tmpl">Dockerfile</a>. It is completely based on the <a href="https://github.com/boot2docker/boot2docker/pull/284">PR</a> from <a href="https://github.com/steeve">steeve</a> and all credits should go to him. In order to make the mount of <em>/Users </em>permanent for every <em>boot2docker up </em>I had to add some additional lines. See <a href="https://gist.github.com/mattes/2d0ffd027cb16571895c#file-dockerfile-tmpl-L21">here</a>. Personally, I think this hack is ugly. But I couldn’t find another way of doing it at the moment. (There is <a href="https://github.com/boot2docker/boot2docker/blob/master/rootfs/rootfs/bootsync.sh#L53"><em>/var/lib/boot2docker/bootsync.sh</em></a> for example, which might be a better place.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*oDvEIN0YMNutomYkrvJC0A.png" /><figcaption>Trying to set “Auto-mount” to “yes” <strong>DOESN’T WORK</strong> for me, unfortunately. I had to add the <a href="https://gist.github.com/mattes/2d0ffd027cb16571895c#file-dockerfile-tmpl-L21">following</a>.</figcaption></figure><p>Building that Dockerfile should save the boot2docker.iso in the resulting Docker image. To copy that iso file to the host system I often see:</p><pre># this does not work for me<br>$ docker run -i -t --rm mattes/boot2docker-vbga &gt; boot2docker.iso</pre><p>… which returns either an empty file or an iso file which doesn’t boot correctly. I tried that with different Docker versions and with Docker 1.0 obviously. The only thing that worked for me was:</p><pre># this works...<br>$ docker run -i -t --rm mattes/boot2docker-vbga /bin/bash<br># and then in another shell:<br>$ docker cp &lt;Container-ID&gt;:boot2docker.iso boot2docker.iso</pre><p>So once you have your fresh boot2docker.iso on your host system replace the old one at<em> ~/.boot2docker/boot2docker.iso</em>:</p><pre>$ boot2docker stop<br>$ mv ~/.boot2docker/boot2docker.iso ~/.boot2docker/boot2docker.iso.backup<br>$ mv boot2docker.iso ~/.boot2docker/boot2docker.iso</pre><p>Now let VirtualBox know, which path you want to mount:</p><pre>$ VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users</pre><p>And this should be it. Let’s verify.</p><pre>$ boot2docker up<br>$ boot2docker ssh &quot;ls /Users&quot;<br>Guest<br>Shared<br>mattes</pre><p>Now you can …</p><pre>docker run -i -t -v /Users/mattes/project1:/data/project1 ubuntu /bin/bash</pre><p><strong>For the lazy:</strong> You could just download <a href="http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso">http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso</a> and move it to <em>~/.boot2docker/boot2docker.iso. </em>Make sure to stop boot2docker before. Find the <a href="https://gist.github.com/mattes/1eff3d69b6bc581afe03">build log here</a>.</p><p><strong>EDIT 20 Jun 2014:</strong> updated boot2docker to version 1.0.1<br><strong>EDIT 7 Jul 2014:</strong> updated boot2docker to version 1.1.0<br><strong>Edit 11 Jul 2014:</strong> updated boot2docker to version 1.1.1<br><strong>Edit 24 Jul 2014: </strong>updated boot2docker to version 1.1.2<br><strong>Edit 14 Aug 2014: </strong>updated brew install commands<br><strong>Edit 24 Aug 2014: </strong>updated boot2docker to version 1.2.0 and vbox to 4.3.14</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da1e3ab2465c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/boot2docker-lightweight-linux-for-docker/boot2docker-together-with-virtualbox-guest-additions-da1e3ab2465c">boot2docker together with VirtualBox Guest Additions</a> was originally published in <a href="https://medium.com/boot2docker-lightweight-linux-for-docker">boot2docker — Lightweight Linux for Docker</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>