Docker volume not used with Redis (mount does show up with inspect)
<p><strong>My final conclusion is that I wasn't able to set the <code>/c/users/...</code> location because it wasn't shared in "Docker".</strong> </p>

<p><a href="https://i.stack.imgur.com/sfEZh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sfEZh.png" alt="enter image description here"></a></p>

<p><strong>After this I was able to <em>see</em> the <code>/c/users/..</code> directory in <em>all</em> my container instances. I was then able to use the <code>-v</code> flag with this directory on every instance basically writing files to my host machine.
What I still don't get is that I don't think I'm actually using <code>volumes</code> at the moment... But it works...</strong></p>

<hr>

<p>I'm trying to have my Docker-hosted Redis instance to persist its data but the mounted volume doesn't seem to be used. I was using Docker with VirtualBox/boot2docker where the composition worked, however I have since moved to Docker for Windows where the compose file still works, but I'm not sure about the <code>volumes</code> property.</p>

<p>My <code>docker-compose.yml</code> file:</p>

<pre><code>vq-redis:
  image: redis:latest
  ports:
   - "6379:6379"
  volumes:
    - /c/users/r/.docker/data/redis/data:/data
</code></pre>

<p>It doesn't matter if I add or remove the <code>volumes</code> definition, because it will always show something like this with <code>docker inspect</code>:</p>

<pre><code>    "Mounts": [
        {
            "Name": "40791b26771b5d62778d85b0ef24e74e516f95d32cf217424232ce8f8a1b8c6f",
            "Source": "/var/lib/docker/volumes/40791b26771b5d62778d85b0ef24e74e516f95d32cf217424232ce8f8a1b8c6f/_data",
            "Destination": "/data",
            "Driver": "local",
            "Mode": "rw",
            "RW": true,
            "Propagation": "rprivate"
        }
    ],
</code></pre>

<p>Is the <code>volumes</code> property still working with Docker for Windows or am I missing a point?</p>

<p><strong>Edit:</strong></p>

<p>If I run...</p>

<pre><code>docker run --name vq-redis -d -v //c/users/r/.docker/data/vq-redis:/data redis redis-server --appendonly yes
</code></pre>

<p>... I can see the container appearing in Kitematic and with <code>docker inspect</code> I can see a mount going to my local folder. However the local folder isn't shown in Kitematic...</p>

<p><a href="https://i.stack.imgur.com/dFreT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dFreT.png" alt="enter image description here"></a></p>

<p><strong>If I add data to the Redis server hosted in the container, then stop the container and start it again the data is gone.</strong></p>

<p>I tried setting the local folder manually in Kitematic. This restarts the container so it seems, but I'm unsure if the initial parameters are passed again. You say:</p>

<blockquote>
  <p>"If the volumes aren't networked on run"</p>
</blockquote>

<p>I guess they <em>were actually networked on run</em> as seen in the console.</p>

<p><a href="https://i.stack.imgur.com/RvWUJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RvWUJ.png" alt="enter image description here"></a></p>

<p>Still, I can add data to the Redis instance hosted in the container. But as soon as I restart the container it's gone...</p>