title: How to list Docker mounted volumes from within the container
body: <p>I want to list all container directories that are mounted volumes.</p>
  
  <p>I.e. to be able to get similar info I get from</p>
  
  <pre><code>docker inspect --format "{{ .Volumes }}" &lt;self&gt;
  </code></pre>
  
  <p>But from within the container and without having <code>docker</code> installed in there.</p>
  
  <p>I tried <code>cat /proc/mounts</code>, but I couldn't find a proper filter for it.</p>