{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/1528","labels_url":"https://api.github.com/repos/docker/swarm/issues/1528/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/1528/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/1528/events","html_url":"https://github.com/docker/swarm/issues/1528","id":121547787,"number":1528,"title":"Missing volume","user":{"login":"everett-toews","id":634901,"avatar_url":"https://avatars.githubusercontent.com/u/634901?v=3","gravatar_id":"","url":"https://api.github.com/users/everett-toews","html_url":"https://github.com/everett-toews","followers_url":"https://api.github.com/users/everett-toews/followers","following_url":"https://api.github.com/users/everett-toews/following{/other_user}","gists_url":"https://api.github.com/users/everett-toews/gists{/gist_id}","starred_url":"https://api.github.com/users/everett-toews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everett-toews/subscriptions","organizations_url":"https://api.github.com/users/everett-toews/orgs","repos_url":"https://api.github.com/users/everett-toews/repos","events_url":"https://api.github.com/users/everett-toews/events{/privacy}","received_events_url":"https://api.github.com/users/everett-toews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T18:23:13Z","updated_at":"2015-12-10T18:23:13Z","closed_at":null,"body":"When using a Docker volume in Swarm, it can go \"missing\".\r\n\r\n### docker version\r\n\r\n```\r\n$ docker version\r\nClient:\r\n Version:      1.9.0\r\n API version:  1.21\r\n Go version:   go1.4.3\r\n Git commit:   76d6bc9\r\n Built:        Tue Nov  3 19:20:09 UTC 2015\r\n OS/Arch:      darwin/amd64\r\n\r\nServer:\r\n Version:      swarm/1.0.1\r\n API version:  1.21\r\n Go version:   go1.5.2\r\n Git commit:   744e3a3\r\n Built:\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\n### docker info\r\n\r\n```\r\n$ docker info\r\nContainers: 5\r\nImages: 5\r\nRole: primary\r\nStrategy: spread\r\nFilters: health, port, dependency, affinity, constraint\r\nNodes: 3\r\n swarm-agent-00: 192.168.99.103:2376\r\n  └ Status: Healthy\r\n  └ Containers: 2\r\n  └ Reserved CPUs: 0 / 1\r\n  └ Reserved Memory: 0 B / 1.021 GiB\r\n  └ Labels: executiondriver=native-0.2, kernelversion=4.1.12-boot2docker, operatingsystem=Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015, provider=virtualbox, storagedriver=aufs\r\n swarm-agent-01: 192.168.99.104:2376\r\n  └ Status: Healthy\r\n  └ Containers: 1\r\n  └ Reserved CPUs: 0 / 1\r\n  └ Reserved Memory: 0 B / 1.021 GiB\r\n  └ Labels: executiondriver=native-0.2, kernelversion=4.1.12-boot2docker, operatingsystem=Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015, provider=virtualbox, storagedriver=aufs\r\n swarm-master: 192.168.99.102:2376\r\n  └ Status: Healthy\r\n  └ Containers: 2\r\n  └ Reserved CPUs: 0 / 1\r\n  └ Reserved Memory: 0 B / 1.021 GiB\r\n  └ Labels: executiondriver=native-0.2, kernelversion=4.1.12-boot2docker, operatingsystem=Boot2Docker 1.9.0 (TCL 6.4); master : 16e4a2a - Tue Nov  3 19:49:22 UTC 2015, provider=virtualbox, storagedriver=aufs\r\nCPUs: 3\r\nTotal Memory: 3.064 GiB\r\nName: 8fc75586672e\r\n```\r\n\r\n### uname -a\r\n\r\n```\r\n$ uname -a\r\nDarwin Everetts-MacBook-Pro.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64\r\n```\r\n\r\n### Environment details (AWS, VirtualBox, physical, etc.)\r\n\r\nMac: 10.11.2\r\nVirtualBox: 5.0.8 r103449\r\n\r\n### How reproducible\r\n\r\nVery\r\n\r\n### Steps to Reproduce\r\n\r\n1. [Install and Create a Docker Swarm](https://docs.docker.com/swarm/install-w-machine/)\r\n\r\n```\r\n$ docker volume create --name minecraft\r\nminecraft\r\n\r\n$ docker volume ls\r\nDRIVER              VOLUME NAME\r\nlocal               897af79edcd501697096da5621aaad536d12efe12d3ce858f2344b4aaf19aa4f\r\nlocal               minecraft\r\nlocal               07b7a6d4ed0b0c498aa7c98dc83fdb12466ee7d6fb6a997827a0a0c8f3f7e63e\r\nlocal               minecraft\r\nlocal               63743379192c7d6acf77d52c205a076b92b0ddcdc2a13521dfa3be09138d9a31\r\nlocal               ac87c2e6a2e82870f613bf29965f2a3704ca9c39f3f8287517051396a00b047f\r\nlocal               minecraft\r\n\r\n$ docker run --detach --interactive --tty \\\r\n>   --name minecraft \\\r\n>   --volume minecraft:/data \\\r\n>   --publish 25565:25565 \\\r\n>   --env EULA=TRUE \\\r\n>   itzg/minecraft-server\r\n0fdee34d82704d5d512dc36a440f502afe51b347cd2254323cc917e3296a0c34\r\n\r\n$ docker exec -it minecraft /bin/bash\r\nroot@0fdee34d8270:/data# ls\r\nbanned-ips.json      eula.txt  minecraft_server.1.8.9.jar  server.properties  whitelist.json\r\nbanned-players.json  logs      ops.json                    usercache.json     world\r\nroot@0fdee34d8270:/data# exit\r\nexit\r\n\r\n$ docker run --rm --volume minecraft:/data itzg/minecraft-server ls /data\r\n[no output here]\r\n\r\n$ docker volume ls\r\nDRIVER              VOLUME NAME\r\nlocal               ac87c2e6a2e82870f613bf29965f2a3704ca9c39f3f8287517051396a00b047f\r\nlocal               minecraft\r\nlocal               63743379192c7d6acf77d52c205a076b92b0ddcdc2a13521dfa3be09138d9a31\r\nlocal               897af79edcd501697096da5621aaad536d12efe12d3ce858f2344b4aaf19aa4f\r\nlocal               minecraft\r\nlocal               07b7a6d4ed0b0c498aa7c98dc83fdb12466ee7d6fb6a997827a0a0c8f3f7e63e\r\n```\r\n\r\n### Actual Results\r\n\r\nNo output from `docker run --rm --volume minecraft:/data itzg/minecraft-server ls /data`\r\n\r\nMissing a `minecraft` volume from `docker volume ls`\r\n\r\n### Expected Results\r\n\r\n`docker run --rm --volume minecraft:/data itzg/minecraft-server ls /data` should output the list of files as per the `docker exec` above. I realize that a volume per node [is the expected behavior](https://github.com/docker/docker/issues/17271#issuecomment-150328143). I'll have a bit more to say on that in another issue.\r\n\r\nThere should be 3 `minecraft` volumes in the output of `docker volume ls`. This is the real bug for this issue."}}