<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: What is shared between multiple copies of the Docker Sandbox? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119584#M43013</link>
    <description>&lt;P&gt;I wasn't able to use the local mac directory for the /hadoop mount.  The /etc/init.d/startup_script run in the container attempt to chown the users/groups to things that don't exist on my Mac.  So I found an alternative approach that I think is working well.&lt;/P&gt;&lt;P&gt;I wrote an article that addresses the shared directory issue: &lt;A target="_blank" href="https://community.hortonworks.com/articles/60584/how-to-manage-multiple-copies-of-the-hdp-docker-sa.html"&gt;https://community.hortonworks.com/articles/60584/how-to-manage-multiple-copies-of-the-hdp-docker-sa.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Oct 2016 08:14:27 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-10-08T08:14:27Z</dc:date>
    <item>
      <title>What is shared between multiple copies of the Docker Sandbox?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119580#M43009</link>
      <description>&lt;P&gt;
	I like to have multiple copies of the Hortonworks Sandbox for HDP.  Typically these sandbox copies are used for specific demo scenarios.  This has worked well with the previous VirtualBox-based sandbox.  However, I'm wondering if there are problems when doing this with the Docker-based sandbox.  &lt;STRONG&gt;Is there anything shared between docker containers based on a similar image?&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;
	
&lt;LI&gt;I installed the Docker Sandbox using my HCC article here: &lt;A target="_blank" href="https://community.hortonworks.com/content/kbentry/58458/installing-docker-version-of-sandbox-on-mac.html"&gt;https://community.hortonworks.com/content/kbentry/58458/installing-docker-version-of-sandbox-on-mac.html&lt;/A&gt;&lt;/LI&gt;	
&lt;LI&gt;I was working through some of the sandbox tutorials and everything was working ok with Atlas.&lt;/LI&gt;	
&lt;LI&gt;At some point, but Docker container crashed.&lt;/LI&gt;	
&lt;LI&gt;When I restarted the sandbox, the Atlas UI would not load.  See the problem here: &lt;A target="_blank" href="https://community.hortonworks.com/questions/60125/atlas-ui-not-working-on-docker-hdp-25-sandbox-afte.html#answer-60449"&gt;https://community.hortonworks.com/questions/60125/atlas-ui-not-working-on-docker-hdp-25-sandbox-afte.html#answer-60449&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;
	To get around the problem before I knew the fix, I figured I would start with a completely new sandbox.  So I repeated the installation procedure above, but gave the image a new name.  Here is the output of &lt;STRONG&gt;docker images&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
sandbox-atlas       latest              1ade17087a83        34 hours ago        15.34 GB
sandbox             latest              fc813bdc4bdd        2 weeks ago         14.57 GB
&lt;/PRE&gt;&lt;P&gt;There are two images.  The &lt;STRONG&gt;sandbox&lt;/STRONG&gt; image is the original import.  The &lt;STRONG&gt;sandbox-atlas&lt;/STRONG&gt; image is the new import.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;So I create a new sandbox container using the sandbox-atlas image, which is a clean image.&lt;/LI&gt;&lt;LI&gt;I start up the container and try to load the Atlas UI and I'm surprised to find the exact same error!&lt;/LI&gt;&lt;LI&gt;I tried creating several different containers and they all behaved the same.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the output of &lt;STRONG&gt;docker ps -a&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;$ docker ps -a
CONTAINER ID        IMAGE               COMMAND               CREATED             STATUS                       PORTS               NAMES
cc74035a2d71        sandbox-atlas       "/usr/sbin/sshd -D"   24 hours ago        Exited (255) 4 seconds ago                       hdp25-atlas-demo
381ff4de9d9c        sandbox             "/usr/sbin/sshd -D"   42 hours ago        Exited (0) 35 hours ago                          atlas-demo

&lt;/PRE&gt;&lt;P&gt;You should notice that each container is using a different image.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there anything shared between docker containers based on a similar, but different image?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 21:18:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119580#M43009</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-10-07T21:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is shared between multiple copies of the Docker Sandbox?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119581#M43010</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2695/myoung.html" nodeid="2695"&gt;@Michael Young&lt;/A&gt;&lt;P&gt;Regarding your question - "&lt;STRONG&gt;Is there anything shared between docker containers?", &lt;/STRONG&gt;I was just reading an article on the same and found that..&lt;/P&gt;&lt;PRE&gt;Your data doesn’t live in the container, it lives in a named volume that is shared between 1-N containers that you define. You backup the data volume, and forget about the container. Optimallyyour containers are completely stateless and immutable.&lt;/PRE&gt;&lt;P&gt;Source: &lt;A href="https://blog.docker.com/2016/03/containers-are-not-vms/" target="_blank"&gt;https://blog.docker.com/2016/03/containers-are-not-vms/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;More indepth details: &lt;A href="https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/" target="_blank"&gt;https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Not sure, if this answers your question but thought to add it here.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 21:47:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119581#M43010</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-07T21:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is shared between multiple copies of the Docker Sandbox?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119582#M43011</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/40/apathan.html" nodeid="40"&gt;@Ayub Pathan&lt;/A&gt; &lt;/P&gt;&lt;P&gt;This was very helpful information.  I was thinking in the lines of VMs, which is wrong for Docker containers.  I assumed that if I copied the base image and created a container from it, then the data would not be shared between the two.&lt;/P&gt;&lt;P&gt;What I found out is the container for the sandbox is mounting the /hadoop directory on the "host", which is actually the Hyperkit linux VM (on Mac).  So even though I used different images and containers, they were sharing a common directory on the VM.&lt;/P&gt;&lt;P&gt;I'm going to try working around this by mapping my container's /hadoop directory to my local mac project working directory, not the hyperkit vm, to see if that keeps the data separate.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 00:30:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119582#M43011</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-10-08T00:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is shared between multiple copies of the Docker Sandbox?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119583#M43012</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2695/myoung.html" nodeid="2695"&gt;@Michael Young&lt;/A&gt; Thanks for sharing your findings, this is helpful.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 07:13:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119583#M43012</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-08T07:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is shared between multiple copies of the Docker Sandbox?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119584#M43013</link>
      <description>&lt;P&gt;I wasn't able to use the local mac directory for the /hadoop mount.  The /etc/init.d/startup_script run in the container attempt to chown the users/groups to things that don't exist on my Mac.  So I found an alternative approach that I think is working well.&lt;/P&gt;&lt;P&gt;I wrote an article that addresses the shared directory issue: &lt;A target="_blank" href="https://community.hortonworks.com/articles/60584/how-to-manage-multiple-copies-of-the-hdp-docker-sa.html"&gt;https://community.hortonworks.com/articles/60584/how-to-manage-multiple-copies-of-the-hdp-docker-sa.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 08:14:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/What-is-shared-between-multiple-copies-of-the-Docker-Sandbox/m-p/119584#M43013</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-10-08T08:14:27Z</dc:date>
    </item>
  </channel>
</rss>

