title: Docker how to get volumes used by a container
body: <p>I'm using Docker version 1.10. How can I get the volumes used by a container?</p>
  
  <p>I know I can get the containers by:</p>
  
  <pre><code>docker ps
  </code></pre>
  
  <p>And I can inspect them with:</p>
  
  <pre><code>docker inspect $containerID
  </code></pre>
  
  <p>I also know that the volume API is available, so I can also do:</p>
  
  <pre><code>docker volume ls
  </code></pre>
  
  <p>and</p>
  
  <pre><code>docker volume inspect $volumeID
  </code></pre>
  
  <p>But I can't find any link information between them. What should I use?</p>