Where are docker-compose with volume names stored?
I have this docker-compose.yml
file
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
As you can see there is a named volume called jenkins_home
, now I am wondering where the data is actually stored?
running docker inspect infra_jenkins
I got this:
...
"Mounts": [
{
"Type": "volume",
"Source": "infra_jenkins_home",
"Target": "/var/jenkins_home",
"VolumeOptions": {
"Labels": {
"com.docker.stack.namespace": "infra"
}
}
}
],
...
I am starting these services on a local swock clusters with a command docker stack deploy
, the cluster is made up of 3 VirtualBox instances.
+3
source to share
1 answer