{"action":"created","issue":{"url":"https://api.github.com/repos/docker/swarmkit/issues/490","repository_url":"https://api.github.com/repos/docker/swarmkit","labels_url":"https://api.github.com/repos/docker/swarmkit/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarmkit/issues/490/comments","events_url":"https://api.github.com/repos/docker/swarmkit/issues/490/events","html_url":"https://github.com/docker/swarmkit/issues/490","id":151999520,"number":490,"title":"Per-container volumes","user":{"login":"aluzzardi","id":179503,"avatar_url":"https://avatars.githubusercontent.com/u/179503?v=3","gravatar_id":"","url":"https://api.github.com/users/aluzzardi","html_url":"https://github.com/aluzzardi","followers_url":"https://api.github.com/users/aluzzardi/followers","following_url":"https://api.github.com/users/aluzzardi/following{/other_user}","gists_url":"https://api.github.com/users/aluzzardi/gists{/gist_id}","starred_url":"https://api.github.com/users/aluzzardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aluzzardi/subscriptions","organizations_url":"https://api.github.com/users/aluzzardi/orgs","repos_url":"https://api.github.com/users/aluzzardi/repos","events_url":"https://api.github.com/users/aluzzardi/events{/privacy}","received_events_url":"https://api.github.com/users/aluzzardi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/swarmkit/labels/area/volumes","name":"area/volumes","color":"0e8a16"}],"state":"open","locked":false,"assignee":{"login":"amitshukla","id":6538998,"avatar_url":"https://avatars.githubusercontent.com/u/6538998?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshukla","html_url":"https://github.com/amitshukla","followers_url":"https://api.github.com/users/amitshukla/followers","following_url":"https://api.github.com/users/amitshukla/following{/other_user}","gists_url":"https://api.github.com/users/amitshukla/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshukla/subscriptions","organizations_url":"https://api.github.com/users/amitshukla/orgs","repos_url":"https://api.github.com/users/amitshukla/repos","events_url":"https://api.github.com/users/amitshukla/events{/privacy}","received_events_url":"https://api.github.com/users/amitshukla/received_events","type":"User","site_admin":false},"assignees":[{"login":"amitshukla","id":6538998,"avatar_url":"https://avatars.githubusercontent.com/u/6538998?v=3","gravatar_id":"","url":"https://api.github.com/users/amitshukla","html_url":"https://github.com/amitshukla","followers_url":"https://api.github.com/users/amitshukla/followers","following_url":"https://api.github.com/users/amitshukla/following{/other_user}","gists_url":"https://api.github.com/users/amitshukla/gists{/gist_id}","starred_url":"https://api.github.com/users/amitshukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitshukla/subscriptions","organizations_url":"https://api.github.com/users/amitshukla/orgs","repos_url":"https://api.github.com/users/amitshukla/repos","events_url":"https://api.github.com/users/amitshukla/events{/privacy}","received_events_url":"https://api.github.com/users/amitshukla/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-04-30T01:51:40Z","updated_at":"2016-08-22T12:17:26Z","closed_at":null,"body":"In the current state of things, in order to use a volume one would declare it and then reference it in the task template:\r\n\r\n```yml\r\nservices:\r\n  foo:\r\n    mounts:\r\n      - type: volume\r\n        name: bar\r\n\r\nvolumes:\r\n  bar:\r\n    driver: a-driver\r\n```\r\n\r\nHowever, what happens when you have more than one instance of `foo` running?\r\n\r\nIn some cases we might want to share the volume (shared storage), while in others we might want to have a per-container volume (e.g. 3 instances of mongodb or elastic search).\r\n\r\nA possible solution for that would be volume templates.\r\n\r\nThoughts?\r\n\r\n/cc @amitshukla @cpuguy83 "},"comment":{"url":"https://api.github.com/repos/docker/swarmkit/issues/comments/241395327","html_url":"https://github.com/docker/swarmkit/issues/490#issuecomment-241395327","issue_url":"https://api.github.com/repos/docker/swarmkit/issues/490","id":241395327,"user":{"login":"sheerun","id":292365,"avatar_url":"https://avatars.githubusercontent.com/u/292365?v=3","gravatar_id":"","url":"https://api.github.com/users/sheerun","html_url":"https://github.com/sheerun","followers_url":"https://api.github.com/users/sheerun/followers","following_url":"https://api.github.com/users/sheerun/following{/other_user}","gists_url":"https://api.github.com/users/sheerun/gists{/gist_id}","starred_url":"https://api.github.com/users/sheerun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheerun/subscriptions","organizations_url":"https://api.github.com/users/sheerun/orgs","repos_url":"https://api.github.com/users/sheerun/repos","events_url":"https://api.github.com/users/sheerun/events{/privacy}","received_events_url":"https://api.github.com/users/sheerun/received_events","type":"User","site_admin":false},"created_at":"2016-08-22T12:17:26Z","updated_at":"2016-08-22T12:17:26Z","body":"When I scale my database to 3 instances, I'd like each instance to have different volume name, so they don't share the same one. Is it currently possible to setup?"}}
{"actor":{"display_login":"sheerun"}}