title: Docker container to use same Nexus volume?
body: <p>I run the following:</p>
  
  <pre><code>mkdir /some/dir/nexus-data &amp;&amp; chown -R 200 /some/dir/nexus-data
  chown -R 200 /Users/user.name/dockerVolume/nexus
  docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3
  </code></pre>
  
  <p>Now lets say I upload an artifact to Nexus, and stop the nexus container.</p>
  
  <p>If I want another Nexus container open, on port 8082, what Docker command do I run such that <strong>it uses the same volume as on port 8081</strong> (so when I run this container, <strong>it already contains the artifact</strong> that I uploaded before)</p>
  
  <p>Basically, I want both Nexus containers to <strong>use the same storage</strong>, so that if I upload an artifact to one port, the other port will also have it.</p>
  
  <p>I ran this command, but it didn't seem to work:</p>
  
  <pre><code>docker run --name=nexus2 -p 8082:8081 --volumes-from nexus sonatype/nexus3
  </code></pre>