{"action":"created","comment":{"url":"https://api.github.com/repos/docker/compose/pulls/comments/47581761","id":47581761,"diff_hunk":"@@ -205,6 +215,27 @@ def kill(self, service_names=None, **options):\n     def remove_stopped(self, service_names=None, **options):\n         parallel.parallel_remove(self.containers(service_names, stopped=True), options)\n \n+    def initialize_volumes(self):\n+        try:\n+            for volume in self.volumes:\n+                volume.create()\n+        except NotFound:\n+            raise ConfigurationError(\n+                'Volume %s specifies nonexistent driver %s' % (volume.name, volume.driver)\n+            )\n+        except APIError as e:\n+            if 'Choose a different volume name' in str(e):","path":"compose/project.py","position":72,"original_position":72,"commit_id":"d053738a3bf7d0cde9105867d520ee7c029841cd","original_commit_id":"d053738a3bf7d0cde9105867d520ee7c029841cd","user":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"body":"Yeah, unfortunately right now this is a generic 500 ISE.\r\n```\r\nAPIError: 500 Server Error: Internal Server Error (\"A volume name skystar already exists with the nfs driver. Choose a different volume name.\")\r\n``","created_at":"2015-12-15T00:34:56Z","updated_at":"2015-12-15T00:34:56Z","html_url":"https://github.com/docker/compose/pull/2421#discussion_r47581761","pull_request_url":"https://api.github.com/repos/docker/compose/pulls/2421","_links":{"self":{"href":"https://api.github.com/repos/docker/compose/pulls/comments/47581761"},"html":{"href":"https://github.com/docker/compose/pull/2421#discussion_r47581761"},"pull_request":{"href":"https://api.github.com/repos/docker/compose/pulls/2421"}}},"pull_request":{"url":"https://api.github.com/repos/docker/compose/pulls/2421","id":51165176,"html_url":"https://github.com/docker/compose/pull/2421","diff_url":"https://github.com/docker/compose/pull/2421.diff","patch_url":"https://github.com/docker/compose/pull/2421.patch","issue_url":"https://api.github.com/repos/docker/compose/issues/2421","number":2421,"state":"open","locked":false,"title":"Add support for declaring named volumes in compose files","user":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"body":"* Bump default API version to 1.21 (required for named volume management)\r\n* Introduce new, versioned compose file format while maintaining support\r\n  for current (legacy) format\r\n* Test updates to reflect changes made to the internal API\r\n\r\nFixes #2110, replaces #2113 \r\n\r\nWIP:\r\n- [x] Tests\r\n- [x] Documentation","created_at":"2015-11-19T00:44:41Z","updated_at":"2015-12-15T00:34:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b4bad3aa4c9ba8fd51a7b91cb6968aafc039b6e","assignee":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/compose/milestones/12","html_url":"https://github.com/docker/compose/milestones/1.6.0","labels_url":"https://api.github.com/repos/docker/compose/milestones/12/labels","id":1364847,"number":12,"title":"1.6.0","description":"","creator":{"login":"dnephin","id":442180,"avatar_url":"https://avatars.githubusercontent.com/u/442180?v=3","gravatar_id":"","url":"https://api.github.com/users/dnephin","html_url":"https://github.com/dnephin","followers_url":"https://api.github.com/users/dnephin/followers","following_url":"https://api.github.com/users/dnephin/following{/other_user}","gists_url":"https://api.github.com/users/dnephin/gists{/gist_id}","starred_url":"https://api.github.com/users/dnephin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnephin/subscriptions","organizations_url":"https://api.github.com/users/dnephin/orgs","repos_url":"https://api.github.com/users/dnephin/repos","events_url":"https://api.github.com/users/dnephin/events{/privacy}","received_events_url":"https://api.github.com/users/dnephin/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":14,"state":"open","created_at":"2015-10-19T20:40:56Z","updated_at":"2015-12-14T18:32:41Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/docker/compose/pulls/2421/commits","review_comments_url":"https://api.github.com/repos/docker/compose/pulls/2421/comments","review_comment_url":"https://api.github.com/repos/docker/compose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/compose/issues/2421/comments","statuses_url":"https://api.github.com/repos/docker/compose/statuses/d053738a3bf7d0cde9105867d520ee7c029841cd","head":{"label":"shin-:2110-compose_yml_v2","ref":"2110-compose_yml_v2","sha":"d053738a3bf7d0cde9105867d520ee7c029841cd","user":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"repo":{"id":41770249,"name":"compose","full_name":"shin-/compose","owner":{"login":"shin-","id":1086876,"avatar_url":"https://avatars.githubusercontent.com/u/1086876?v=3","gravatar_id":"","url":"https://api.github.com/users/shin-","html_url":"https://github.com/shin-","followers_url":"https://api.github.com/users/shin-/followers","following_url":"https://api.github.com/users/shin-/following{/other_user}","gists_url":"https://api.github.com/users/shin-/gists{/gist_id}","starred_url":"https://api.github.com/users/shin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shin-/subscriptions","organizations_url":"https://api.github.com/users/shin-/orgs","repos_url":"https://api.github.com/users/shin-/repos","events_url":"https://api.github.com/users/shin-/events{/privacy}","received_events_url":"https://api.github.com/users/shin-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shin-/compose","description":"Define and run multi-container applications with Docker","fork":true,"url":"https://api.github.com/repos/shin-/compose","forks_url":"https://api.github.com/repos/shin-/compose/forks","keys_url":"https://api.github.com/repos/shin-/compose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shin-/compose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shin-/compose/teams","hooks_url":"https://api.github.com/repos/shin-/compose/hooks","issue_events_url":"https://api.github.com/repos/shin-/compose/issues/events{/number}","events_url":"https://api.github.com/repos/shin-/compose/events","assignees_url":"https://api.github.com/repos/shin-/compose/assignees{/user}","branches_url":"https://api.github.com/repos/shin-/compose/branches{/branch}","tags_url":"https://api.github.com/repos/shin-/compose/tags","blobs_url":"https://api.github.com/repos/shin-/compose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shin-/compose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shin-/compose/git/refs{/sha}","trees_url":"https://api.github.com/repos/shin-/compose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shin-/compose/statuses/{sha}","languages_url":"https://api.github.com/repos/shin-/compose/languages","stargazers_url":"https://api.github.com/repos/shin-/compose/stargazers","contributors_url":"https://api.github.com/repos/shin-/compose/contributors","subscribers_url":"https://api.github.com/repos/shin-/compose/subscribers","subscription_url":"https://api.github.com/repos/shin-/compose/subscription","commits_url":"https://api.github.com/repos/shin-/compose/commits{/sha}","git_commits_url":"https://api.github.com/repos/shin-/compose/git/commits{/sha}","comments_url":"https://api.github.com/repos/shin-/compose/comments{/number}","issue_comment_url":"https://api.github.com/repos/shin-/compose/issues/comments{/number}","contents_url":"https://api.github.com/repos/shin-/compose/contents/{+path}","compare_url":"https://api.github.com/repos/shin-/compose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shin-/compose/merges","archive_url":"https://api.github.com/repos/shin-/compose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shin-/compose/downloads","issues_url":"https://api.github.com/repos/shin-/compose/issues{/number}","pulls_url":"https://api.github.com/repos/shin-/compose/pulls{/number}","milestones_url":"https://api.github.com/repos/shin-/compose/milestones{/number}","notifications_url":"https://api.github.com/repos/shin-/compose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shin-/compose/labels{/name}","releases_url":"https://api.github.com/repos/shin-/compose/releases{/id}","created_at":"2015-09-02T00:22:20Z","updated_at":"2015-09-02T00:22:22Z","pushed_at":"2015-12-14T23:03:33Z","git_url":"git://github.com/shin-/compose.git","ssh_url":"git@github.com:shin-/compose.git","clone_url":"https://github.com/shin-/compose.git","svn_url":"https://github.com/shin-/compose","homepage":"https://docs.docker.com/compose/","size":5830,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"a1217dc050144843acb54474ee877ab50fc2eb98","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":15045751,"name":"compose","full_name":"docker/compose","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/compose","description":"Define and run multi-container applications with Docker","fork":false,"url":"https://api.github.com/repos/docker/compose","forks_url":"https://api.github.com/repos/docker/compose/forks","keys_url":"https://api.github.com/repos/docker/compose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/compose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/compose/teams","hooks_url":"https://api.github.com/repos/docker/compose/hooks","issue_events_url":"https://api.github.com/repos/docker/compose/issues/events{/number}","events_url":"https://api.github.com/repos/docker/compose/events","assignees_url":"https://api.github.com/repos/docker/compose/assignees{/user}","branches_url":"https://api.github.com/repos/docker/compose/branches{/branch}","tags_url":"https://api.github.com/repos/docker/compose/tags","blobs_url":"https://api.github.com/repos/docker/compose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/compose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/compose/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/compose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/compose/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/compose/languages","stargazers_url":"https://api.github.com/repos/docker/compose/stargazers","contributors_url":"https://api.github.com/repos/docker/compose/contributors","subscribers_url":"https://api.github.com/repos/docker/compose/subscribers","subscription_url":"https://api.github.com/repos/docker/compose/subscription","commits_url":"https://api.github.com/repos/docker/compose/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/compose/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/compose/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/compose/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/compose/contents/{+path}","compare_url":"https://api.github.com/repos/docker/compose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/compose/merges","archive_url":"https://api.github.com/repos/docker/compose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/compose/downloads","issues_url":"https://api.github.com/repos/docker/compose/issues{/number}","pulls_url":"https://api.github.com/repos/docker/compose/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/compose/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/compose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/compose/labels{/name}","releases_url":"https://api.github.com/repos/docker/compose/releases{/id}","created_at":"2013-12-09T11:40:58Z","updated_at":"2015-12-14T23:24:17Z","pushed_at":"2015-12-14T23:50:02Z","git_url":"git://github.com/docker/compose.git","ssh_url":"git@github.com:docker/compose.git","clone_url":"https://github.com/docker/compose.git","svn_url":"https://github.com/docker/compose","homepage":"https://docs.docker.com/compose/","size":14995,"stargazers_count":6754,"watchers_count":6754,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":884,"mirror_url":null,"open_issues_count":331,"forks":884,"open_issues":331,"watchers":6754,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/compose/pulls/2421"},"html":{"href":"https://github.com/docker/compose/pull/2421"},"issue":{"href":"https://api.github.com/repos/docker/compose/issues/2421"},"comments":{"href":"https://api.github.com/repos/docker/compose/issues/2421/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/compose/pulls/2421/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/compose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/compose/pulls/2421/commits"},"statuses":{"href":"https://api.github.com/repos/docker/compose/statuses/d053738a3bf7d0cde9105867d520ee7c029841cd"}}}}