{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/19990","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/19990/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/19990/comments","events_url":"https://api.github.com/repos/docker/docker/issues/19990/events","html_url":"https://github.com/docker/docker/issues/19990","id":131260066,"number":19990,"title":"[feature] Allow for named volumes to specify host mount point","user":{"login":"CWSpear","id":495855,"avatar_url":"https://avatars.githubusercontent.com/u/495855?v=3","gravatar_id":"","url":"https://api.github.com/users/CWSpear","html_url":"https://github.com/CWSpear","followers_url":"https://api.github.com/users/CWSpear/followers","following_url":"https://api.github.com/users/CWSpear/following{/other_user}","gists_url":"https://api.github.com/users/CWSpear/gists{/gist_id}","starred_url":"https://api.github.com/users/CWSpear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CWSpear/subscriptions","organizations_url":"https://api.github.com/users/CWSpear/orgs","repos_url":"https://api.github.com/users/CWSpear/repos","events_url":"https://api.github.com/users/CWSpear/events{/privacy}","received_events_url":"https://api.github.com/users/CWSpear/received_events","type":"User","site_admin":false},"labels":[{"id":439928930,"url":"https://api.github.com/repos/docker/docker/labels/area/volumes","name":"area/volumes","color":"fbca04","default":false},{"id":179237356,"url":"https://api.github.com/repos/docker/docker/labels/kind/enhancement","name":"kind/enhancement","color":"E8CAAF","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":38,"created_at":"2016-02-04T06:42:25Z","updated_at":"2016-12-27T17:44:41Z","closed_at":"2016-02-04T14:13:11Z","body":"With docker-compose 1.6 coming out soon and the new v2 syntax, I've been learning more about `docker volume` that came out in docker 1.9.\n\nMy thought was that docker volumes could be created to replace data-only containers and `--volumes-from`. Specifically, it allows for cleaner `docker ps` and it allows us to mount volumes on two different containers at different places.\n\nBut it doesn't let us persist that data as well as data-only containers could.\n\nIs there a particular reason it doesn't/you can't use a mount (or perhaps bind is a better work?) point outside of `/var/lib/docker`?\n\nMy proposal: would it be possible for us to add an option for the local driver to specify a bind/mount point on the host?\n\nMy use-case is I use Docker for smaller things that don't need massive scaling, and something like Flocker is mega overkill. However, I have had multiple times where I needed a volume on at least 2 containers _and_ to have it persisted, and it got pretty messy with data-only containers, and it could be solved nicely with my proposal.\n\nSpecific use case: I have a `letsencrypt` docker container that creates certificates. I need the certificates to persist, but I also need my `nginx` container to have access them. I've had similar setups with images, but I also wanted to have them mounted at different points within the specific containers, something not possible with data-only containers.\n\nI _could_ get some of this working by mounting each container to the same volume on the host, but then my containers are more host-dependent, and I'd rather move that to a dedicated volume whose _job_ it is to persist things, and then I only have one place to change it and my other containers don't need to care about that.\n\nAnyway, hopefully we could add something to help here, please let me know if I can add any clarification, etc. Thanks!\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/269358355","html_url":"https://github.com/docker/docker/issues/19990#issuecomment-269358355","issue_url":"https://api.github.com/repos/docker/docker/issues/19990","id":269358355,"user":{"login":"shmendo","id":1163038,"avatar_url":"https://avatars.githubusercontent.com/u/1163038?v=3","gravatar_id":"","url":"https://api.github.com/users/shmendo","html_url":"https://github.com/shmendo","followers_url":"https://api.github.com/users/shmendo/followers","following_url":"https://api.github.com/users/shmendo/following{/other_user}","gists_url":"https://api.github.com/users/shmendo/gists{/gist_id}","starred_url":"https://api.github.com/users/shmendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmendo/subscriptions","organizations_url":"https://api.github.com/users/shmendo/orgs","repos_url":"https://api.github.com/users/shmendo/repos","events_url":"https://api.github.com/users/shmendo/events{/privacy}","received_events_url":"https://api.github.com/users/shmendo/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T17:44:41Z","updated_at":"2016-12-27T17:44:41Z","body":"@thaJeztah I'm not 100% sure what you mean by not using docker-compose, but I will test again using the same setup as above. I'm in the middle of a ticket, so it may be a little while before I respond but I will respond with results when i do test it as well as version #s of everything."}}
{"actor":{"display_login":"shmendo"}}