<div dir="ltr">Hi folks,<div><br></div><div>I've been working with Ceph and Docker containers, and wanted to post a reply to Omar Marquez's post to the list from October 2013 regarding issues using Ceph's `rbd map` command within a Linux container: <a href="https://lists.linuxcontainers.org/pipermail/lxc-users/2013-October/005795.html">https://lists.linuxcontainers.org/pipermail/lxc-users/2013-October/005795.html</a></div><div><br></div><div>I filed a bug with Ceph to track this (<a href="http://tracker.ceph.com/issues/9355">http://tracker.ceph.com/issues/9355</a>), but eventually figured out it was because the container didn't have the same network context as the host does.</div><div><br></div><div>I got this working by running the container with both `--net host` and `-v /sys:/sys`, so that the container can both have the necessary network context and mount the /sys filesystem as read-write to actually create the rbd bus.</div><div><br></div><div>I know the original post in this list is old, but there seem to be many people who were struggling to accomplish this, so I wanted to share my workaround.</div><div><br clear="all"><div><div dir="ltr"><p><b><span style="font-size:10pt;font-family:Helvetica,sans-serif"><font color="#232020">Chris Armstrong<br></font></span></b><span style="color:rgb(103,103,103);font-family:Helvetica,sans-serif;font-size:10pt">Head of Services<br></span><span style="font-family:Helvetica,sans-serif;font-size:10pt"><font style="text-decoration:none;font-family:Helvetica,sans-serif;font-size:10pt" color="#000000">OpDemand / Deis.io</font></span></p><p><span style="font-family:Helvetica,sans-serif;font-size:10pt"><font style="text-decoration:none;font-family:Helvetica,sans-serif;font-size:10pt" color="#000000">GitHub: <a href="https://github.com/deis/deis" target="_blank">https://github.com/deis/deis</a> -- Docs: </font></span><font color="#000000" face="Helvetica, sans-serif"><a href="http://docs.deis.io/" target="_blank">http://docs.deis.io/</a></font></p><p><span style="font-size:10pt;font-family:Helvetica,sans-serif"></span></p></div></div>
</div></div>