title: Dockerfile VOLUME not working
body: <p>I am really stuck with the usage of docker VOLUME's. I have a plain dockerfile:</p>
  
  <pre><code>FROM ubuntu:latest  
  VOLUME /foo/bar
  RUN touch /foo/bar/tmp.txt
  </code></pre>
  
  <p>I ran <code>$ docker build -f dockerfile -t test .</code> and it was successful. After this, I interactively ran a shell into the docker container associated with the run of the created <code>test</code> image. That is, I ran <code>$ docker run -it test</code></p>
  
  <p><strong>Observations:</strong></p>
  
  <p><code>/foo/bar</code> is created but <strong>empty</strong>.</p>
  
  <p><code>docker inspect test</code> mounting info: </p>
  
  <pre><code>"Volumes": {
    "/foo/bar": {}
  }
  </code></pre>
  
  <p>It seems that it is not mounting at all. The task seems pretty straight but am I doing something wrong ?</p>
  
  <p><strong>EDIT :</strong> I am looking to persist the data that is created inside this mounted volume directory.</p>