title: How can I see detached docker containers?
body: <p>I started using docker only recently. It is my understanding that in order to mount the local folder into a docker volume inside the container <code>C1</code> on the image <code>image_name</code> can be done by running the following code:</p>
  
  <pre><code>var=$(pwd)
  docker run -d --name=C1 -v $var:/host image_name
  </code></pre>
  
  <p>However, because I am detaching the container, I am not able to see it among the containers created doing <code>docker ps</code> or <code>docker container ls</code>.</p>
  
  <p>However, if I run <code>docker volume list</code> and then <code>docker volume rm VOLUMEID</code> I get the error <code>volume is in use - [CONTAINER_C1_ID]</code>.</p>
  
  <p>Any idea how can I see where C1 is? </p>
  
  <p>Where am I doing wrong?</p>