title: Docker initializing volume exiting container
body: <p>I am running scripts from:</p>
  
  <p><a href="https://www.tutorialspoint.com/docker/docker_storage.htm" rel="nofollow noreferrer">https://www.tutorialspoint.com/docker/docker_storage.htm</a> > <strong>Data Volumes</strong></p>
  
  <p>When I want to perform such script:</p>
  
  <pre><code>docker run -d -v /home/docker/demo:/nexus-data --name="volume" sonatype/nexus3
  </code></pre>
  
  <p>I see on container list that <strong>volume</strong> container is <strong>Up</strong> and <strong>running</strong> but after few seconds it state change to <strong>Exited</strong>, why?</p>