{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/Mashape/docker-kong/pulls/5","id":38219401,"html_url":"https://github.com/Mashape/docker-kong/pull/5","diff_url":"https://github.com/Mashape/docker-kong/pull/5.diff","patch_url":"https://github.com/Mashape/docker-kong/pull/5.patch","issue_url":"https://api.github.com/repos/Mashape/docker-kong/issues/5","number":5,"state":"closed","locked":false,"title":"Use docker `exec` instead of `run`","user":{"login":"ankon","id":1210641,"avatar_url":"https://avatars.githubusercontent.com/u/1210641?v=3","gravatar_id":"","url":"https://api.github.com/users/ankon","html_url":"https://github.com/ankon","followers_url":"https://api.github.com/users/ankon/followers","following_url":"https://api.github.com/users/ankon/following{/other_user}","gists_url":"https://api.github.com/users/ankon/gists{/gist_id}","starred_url":"https://api.github.com/users/ankon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankon/subscriptions","organizations_url":"https://api.github.com/users/ankon/orgs","repos_url":"https://api.github.com/users/ankon/repos","events_url":"https://api.github.com/users/ankon/events{/privacy}","received_events_url":"https://api.github.com/users/ankon/received_events","type":"User","site_admin":false},"body":"`exec` is for running commands inside the existing container, `run` would actually create a new container and run the `kong reload` there ... which likely will fail like this:\r\n~~~~\r\n$ docker run -it kong kong reload\r\nUnable to find image 'kong:latest' locally\r\nTrying to pull repository docker.io/kong ... not found\r\nError: image library/kong:latest not found\r\n$ docker run -it mashape/kong kong reload\r\n[INFO] Using configuration: /etc/kong/kong.yml\r\n[ERR] Could not reload: Kong is not running.\r\n~~~~\r\n\r\n(The first error would be because `run` wants an image name, not a container name; the second one then uses a suitable image name, but that one just doesn't have a kong running)","created_at":"2015-06-22T10:48:14Z","updated_at":"2015-06-23T10:58:57Z","closed_at":"2015-06-23T10:58:56Z","merged_at":"2015-06-23T10:58:56Z","merge_commit_sha":"465f06c35e91fbedf7ef9c295931646a3714bcc5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Mashape/docker-kong/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Mashape/docker-kong/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Mashape/docker-kong/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mashape/docker-kong/issues/5/comments","statuses_url":"https://api.github.com/repos/Mashape/docker-kong/statuses/496fe1713ec877637c1b01e05ecc98a7bbde13e1","head":{"label":"ankon:docker-use-exec","ref":"docker-use-exec","sha":"496fe1713ec877637c1b01e05ecc98a7bbde13e1","user":{"login":"ankon","id":1210641,"avatar_url":"https://avatars.githubusercontent.com/u/1210641?v=3","gravatar_id":"","url":"https://api.github.com/users/ankon","html_url":"https://github.com/ankon","followers_url":"https://api.github.com/users/ankon/followers","following_url":"https://api.github.com/users/ankon/following{/other_user}","gists_url":"https://api.github.com/users/ankon/gists{/gist_id}","starred_url":"https://api.github.com/users/ankon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankon/subscriptions","organizations_url":"https://api.github.com/users/ankon/orgs","repos_url":"https://api.github.com/users/ankon/repos","events_url":"https://api.github.com/users/ankon/events{/privacy}","received_events_url":"https://api.github.com/users/ankon/received_events","type":"User","site_admin":false},"repo":{"id":37849843,"name":"docker-kong","full_name":"ankon/docker-kong","owner":{"login":"ankon","id":1210641,"avatar_url":"https://avatars.githubusercontent.com/u/1210641?v=3","gravatar_id":"","url":"https://api.github.com/users/ankon","html_url":"https://github.com/ankon","followers_url":"https://api.github.com/users/ankon/followers","following_url":"https://api.github.com/users/ankon/following{/other_user}","gists_url":"https://api.github.com/users/ankon/gists{/gist_id}","starred_url":"https://api.github.com/users/ankon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankon/subscriptions","organizations_url":"https://api.github.com/users/ankon/orgs","repos_url":"https://api.github.com/users/ankon/repos","events_url":"https://api.github.com/users/ankon/events{/privacy}","received_events_url":"https://api.github.com/users/ankon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ankon/docker-kong","description":"Docker distribution for Kong","fork":true,"url":"https://api.github.com/repos/ankon/docker-kong","forks_url":"https://api.github.com/repos/ankon/docker-kong/forks","keys_url":"https://api.github.com/repos/ankon/docker-kong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ankon/docker-kong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ankon/docker-kong/teams","hooks_url":"https://api.github.com/repos/ankon/docker-kong/hooks","issue_events_url":"https://api.github.com/repos/ankon/docker-kong/issues/events{/number}","events_url":"https://api.github.com/repos/ankon/docker-kong/events","assignees_url":"https://api.github.com/repos/ankon/docker-kong/assignees{/user}","branches_url":"https://api.github.com/repos/ankon/docker-kong/branches{/branch}","tags_url":"https://api.github.com/repos/ankon/docker-kong/tags","blobs_url":"https://api.github.com/repos/ankon/docker-kong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ankon/docker-kong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ankon/docker-kong/git/refs{/sha}","trees_url":"https://api.github.com/repos/ankon/docker-kong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ankon/docker-kong/statuses/{sha}","languages_url":"https://api.github.com/repos/ankon/docker-kong/languages","stargazers_url":"https://api.github.com/repos/ankon/docker-kong/stargazers","contributors_url":"https://api.github.com/repos/ankon/docker-kong/contributors","subscribers_url":"https://api.github.com/repos/ankon/docker-kong/subscribers","subscription_url":"https://api.github.com/repos/ankon/docker-kong/subscription","commits_url":"https://api.github.com/repos/ankon/docker-kong/commits{/sha}","git_commits_url":"https://api.github.com/repos/ankon/docker-kong/git/commits{/sha}","comments_url":"https://api.github.com/repos/ankon/docker-kong/comments{/number}","issue_comment_url":"https://api.github.com/repos/ankon/docker-kong/issues/comments{/number}","contents_url":"https://api.github.com/repos/ankon/docker-kong/contents/{+path}","compare_url":"https://api.github.com/repos/ankon/docker-kong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ankon/docker-kong/merges","archive_url":"https://api.github.com/repos/ankon/docker-kong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ankon/docker-kong/downloads","issues_url":"https://api.github.com/repos/ankon/docker-kong/issues{/number}","pulls_url":"https://api.github.com/repos/ankon/docker-kong/pulls{/number}","milestones_url":"https://api.github.com/repos/ankon/docker-kong/milestones{/number}","notifications_url":"https://api.github.com/repos/ankon/docker-kong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ankon/docker-kong/labels{/name}","releases_url":"https://api.github.com/repos/ankon/docker-kong/releases{/id}","created_at":"2015-06-22T10:39:36Z","updated_at":"2015-06-11T11:52:57Z","pushed_at":"2015-06-22T10:47:41Z","git_url":"git://github.com/ankon/docker-kong.git","ssh_url":"git@github.com:ankon/docker-kong.git","clone_url":"https://github.com/ankon/docker-kong.git","svn_url":"https://github.com/ankon/docker-kong","homepage":"http://getkong.org","size":148,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Mashape:master","ref":"master","sha":"dccf94d70b676f2844a54656c3f2f89b8d1fcf88","user":{"login":"Mashape","id":962416,"avatar_url":"https://avatars.githubusercontent.com/u/962416?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashape","html_url":"https://github.com/Mashape","followers_url":"https://api.github.com/users/Mashape/followers","following_url":"https://api.github.com/users/Mashape/following{/other_user}","gists_url":"https://api.github.com/users/Mashape/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashape/subscriptions","organizations_url":"https://api.github.com/users/Mashape/orgs","repos_url":"https://api.github.com/users/Mashape/repos","events_url":"https://api.github.com/users/Mashape/events{/privacy}","received_events_url":"https://api.github.com/users/Mashape/received_events","type":"Organization","site_admin":false},"repo":{"id":31050380,"name":"docker-kong","full_name":"Mashape/docker-kong","owner":{"login":"Mashape","id":962416,"avatar_url":"https://avatars.githubusercontent.com/u/962416?v=3","gravatar_id":"","url":"https://api.github.com/users/Mashape","html_url":"https://github.com/Mashape","followers_url":"https://api.github.com/users/Mashape/followers","following_url":"https://api.github.com/users/Mashape/following{/other_user}","gists_url":"https://api.github.com/users/Mashape/gists{/gist_id}","starred_url":"https://api.github.com/users/Mashape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mashape/subscriptions","organizations_url":"https://api.github.com/users/Mashape/orgs","repos_url":"https://api.github.com/users/Mashape/repos","events_url":"https://api.github.com/users/Mashape/events{/privacy}","received_events_url":"https://api.github.com/users/Mashape/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Mashape/docker-kong","description":"Docker distribution for Kong","fork":false,"url":"https://api.github.com/repos/Mashape/docker-kong","forks_url":"https://api.github.com/repos/Mashape/docker-kong/forks","keys_url":"https://api.github.com/repos/Mashape/docker-kong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mashape/docker-kong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mashape/docker-kong/teams","hooks_url":"https://api.github.com/repos/Mashape/docker-kong/hooks","issue_events_url":"https://api.github.com/repos/Mashape/docker-kong/issues/events{/number}","events_url":"https://api.github.com/repos/Mashape/docker-kong/events","assignees_url":"https://api.github.com/repos/Mashape/docker-kong/assignees{/user}","branches_url":"https://api.github.com/repos/Mashape/docker-kong/branches{/branch}","tags_url":"https://api.github.com/repos/Mashape/docker-kong/tags","blobs_url":"https://api.github.com/repos/Mashape/docker-kong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mashape/docker-kong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mashape/docker-kong/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mashape/docker-kong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mashape/docker-kong/statuses/{sha}","languages_url":"https://api.github.com/repos/Mashape/docker-kong/languages","stargazers_url":"https://api.github.com/repos/Mashape/docker-kong/stargazers","contributors_url":"https://api.github.com/repos/Mashape/docker-kong/contributors","subscribers_url":"https://api.github.com/repos/Mashape/docker-kong/subscribers","subscription_url":"https://api.github.com/repos/Mashape/docker-kong/subscription","commits_url":"https://api.github.com/repos/Mashape/docker-kong/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mashape/docker-kong/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mashape/docker-kong/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mashape/docker-kong/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mashape/docker-kong/contents/{+path}","compare_url":"https://api.github.com/repos/Mashape/docker-kong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mashape/docker-kong/merges","archive_url":"https://api.github.com/repos/Mashape/docker-kong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mashape/docker-kong/downloads","issues_url":"https://api.github.com/repos/Mashape/docker-kong/issues{/number}","pulls_url":"https://api.github.com/repos/Mashape/docker-kong/pulls{/number}","milestones_url":"https://api.github.com/repos/Mashape/docker-kong/milestones{/number}","notifications_url":"https://api.github.com/repos/Mashape/docker-kong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mashape/docker-kong/labels{/name}","releases_url":"https://api.github.com/repos/Mashape/docker-kong/releases{/id}","created_at":"2015-02-20T04:04:31Z","updated_at":"2015-06-11T11:52:57Z","pushed_at":"2015-06-23T10:58:56Z","git_url":"git://github.com/Mashape/docker-kong.git","ssh_url":"git@github.com:Mashape/docker-kong.git","clone_url":"https://github.com/Mashape/docker-kong.git","svn_url":"https://github.com/Mashape/docker-kong","homepage":"http://getkong.org","size":338,"stargazers_count":15,"watchers_count":15,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mashape/docker-kong/pulls/5"},"html":{"href":"https://github.com/Mashape/docker-kong/pull/5"},"issue":{"href":"https://api.github.com/repos/Mashape/docker-kong/issues/5"},"comments":{"href":"https://api.github.com/repos/Mashape/docker-kong/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Mashape/docker-kong/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Mashape/docker-kong/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mashape/docker-kong/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Mashape/docker-kong/statuses/496fe1713ec877637c1b01e05ecc98a7bbde13e1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"thibaultCha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultCha","html_url":"https://github.com/thibaultCha","followers_url":"https://api.github.com/users/thibaultCha/followers","following_url":"https://api.github.com/users/thibaultCha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultCha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultCha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultCha/subscriptions","organizations_url":"https://api.github.com/users/thibaultCha/orgs","repos_url":"https://api.github.com/users/thibaultCha/repos","events_url":"https://api.github.com/users/thibaultCha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultCha/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}