title: Determine volume location of a running container
body: <p>I'm new to Docker and have a question about leaving volume as default. Here is my <code>Dockerfile</code>:</p>
  
  <pre><code>FROM ubuntu:18.04
  
  WORKDIR /root
  
  RUN apt-get update &amp;&amp; apt-get install -y \
                        curl \
                        gnupg2 \
                        git
  
  CMD ["/bin/bash"]
  </code></pre>
  
  <p>I run the container as follows <code>docker container run -it gcp:1.0</code>. </p>
  
  <p>The problem comes when I'm trying to inspect the running container:</p>
  
  <pre><code>$ sudo docker inspect bfa3a5495364
  "Image": "sha256:6edaefc071a94e18d26de68ca90d9fbe11267c32510d1c3683c236d0b4195df7",                                                                                                                                            
  "ResolvConfPath": "/var/lib/docker/containers/bfa3a54953646bee1effccc956c2448fb403083e8faed35afd76a635cd2ccb84/resolv.conf",                                                                                                   
  "HostnamePath": "/var/lib/docker/containers/bfa3a54953646bee1effccc956c2448fb403083e8faed35afd76a635cd2ccb84/hostname",                                                                                                        
  "HostsPath": "/var/lib/docker/containers/bfa3a54953646bee1effccc956c2448fb403083e8faed35afd76a635cd2ccb84/hosts",                                                                                                              
  "LogPath": "/var/lib/docker/containers/bfa3a54953646bee1effccc956c2448fb403083e8faed35afd76a635cd2ccb84/bfa3a54953646bee1effccc956c2448fb403083e8faed35afd76a635cd2ccb84-json.log",                                            
  ...
  "Mounts": [],  
  ...
  </code></pre>
  
  <p>So since <code>Mounts</code> is empty it does not provide any information about the actual volume location which in that case was selected by default. I also tried to print all volumes:</p>
  
  <pre><code>$ sudo docker volume ls
  DRIVER              VOLUME NAME
  </code></pre>
  
  <p>shows no volume.</p>
  
  <p><strong><em>QUESTION:</em></strong> How to determine volume location that was selected by default?</p>