title: Where docker named volumes are stored?
body: <p>I have this <code>docker-compose.yml</code> file</p>
  
  <pre><code>version: '3'
  
  volumes:
    jenkins_home:
  
  services:
  
    registry:
       image: registry:2
       ports:
         - "5000:5000"
  
    jenkins:
      image: jenkins/jenkins
      ports:
        - "9090:8080"
      volumes:
        - jenkins_home:/var/jenkins_home
  </code></pre>
  
  <p>As you can see, there is a named volume called <code>jenkins_home</code>, now I wonder, where does the data get really persisted?</p>
  
  <p>running <code>docker inspect infra_jenkins</code> i got this:</p>
  
  <pre><code> ...
   "Mounts": [
      {
        "Type": "volume",
        "Source": "infra_jenkins_home",
        "Target": "/var/jenkins_home",
        "VolumeOptions": {
        "Labels": {
        "com.docker.stack.namespace": "infra"
                }
            }
        }
  ],
  ...
  </code></pre>
  
  <p>I am running those services on a local docker swarm cluster using <code>docker stack deploy</code> command, the cluster is composed of three VirtualBox instances.</p>