{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/libpod/pulls/comments/197806566","pull_request_review_id":131620457,"id":197806566,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzgwNjU2Ng==","diff_hunk":"@@ -0,0 +1,86 @@\n+package main\n+\n+import (\n+\t\"fmt\"\n+\t\"os\"\n+\n+\t\"github.com/pkg/errors\"\n+\t\"github.com/projectatomic/libpod/cmd/podman/libpodruntime\"\n+\t\"github.com/projectatomic/libpod/libpod\"\n+\t\"github.com/urfave/cli\"\n+)\n+\n+var (\n+\tcleanupFlags = []cli.Flag{\n+\t\tcli.BoolFlag{\n+\t\t\tName:  \"all, a\",\n+\t\t\tUsage: \"Remove all containers\",","path":"cmd/podman/cleanup.go","position":17,"original_position":17,"commit_id":"b11e7197f9f9364487fc3d3495c4a086f5fc6828","original_commit_id":"b11e7197f9f9364487fc3d3495c4a086f5fc6828","user":{"login":"mheon","id":7735048,"node_id":"MDQ6VXNlcjc3MzUwNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7735048?v=4","gravatar_id":"","url":"https://api.github.com/users/mheon","html_url":"https://github.com/mheon","followers_url":"https://api.github.com/users/mheon/followers","following_url":"https://api.github.com/users/mheon/following{/other_user}","gists_url":"https://api.github.com/users/mheon/gists{/gist_id}","starred_url":"https://api.github.com/users/mheon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mheon/subscriptions","organizations_url":"https://api.github.com/users/mheon/orgs","repos_url":"https://api.github.com/users/mheon/repos","events_url":"https://api.github.com/users/mheon/events{/privacy}","received_events_url":"https://api.github.com/users/mheon/received_events","type":"User","site_admin":false},"body":"Remove all?\r\n\r\nAlso, does this flag even make sense? If we ever end up in a situation where we need to manually clean up every container, something has gone seriously wrong.","created_at":"2018-06-25T13:59:43Z","updated_at":"2018-06-25T13:59:43Z","html_url":"https://github.com/projectatomic/libpod/pull/942#discussion_r197806566","pull_request_url":"https://api.github.com/repos/projectatomic/libpod/pulls/942","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/comments/197806566"},"html":{"href":"https://github.com/projectatomic/libpod/pull/942#discussion_r197806566"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/942"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/libpod/pulls/942","id":194609146,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NjA5MTQ2","html_url":"https://github.com/projectatomic/libpod/pull/942","diff_url":"https://github.com/projectatomic/libpod/pull/942.diff","patch_url":"https://github.com/projectatomic/libpod/pull/942.patch","issue_url":"https://api.github.com/repos/projectatomic/libpod/issues/942","number":942,"state":"open","locked":false,"title":"Add `podman container cleanup` to CLI","user":{"login":"rhatdan","id":2000835,"node_id":"MDQ6VXNlcjIwMDA4MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/2000835?v=4","gravatar_id":"","url":"https://api.github.com/users/rhatdan","html_url":"https://github.com/rhatdan","followers_url":"https://api.github.com/users/rhatdan/followers","following_url":"https://api.github.com/users/rhatdan/following{/other_user}","gists_url":"https://api.github.com/users/rhatdan/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatdan/subscriptions","organizations_url":"https://api.github.com/users/rhatdan/orgs","repos_url":"https://api.github.com/users/rhatdan/repos","events_url":"https://api.github.com/users/rhatdan/events{/privacy}","received_events_url":"https://api.github.com/users/rhatdan/received_events","type":"User","site_admin":false},"body":"When we run containers in detach mode, nothing cleans up the network stack or\r\nthe mount points.  This patch will tell conmon to execute the cleanup code when\r\nthe container exits.\r\n\r\nIt can also be called to attempt to cleanup previously running containers.\r\n\r\nSigned-off-by: Daniel J Walsh <dwalsh@redhat.com>","created_at":"2018-06-13T14:36:51Z","updated_at":"2018-06-25T13:59:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cf61f9c458e153a0bb84d05b9d218cc33c65837a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/libpod/pulls/942/commits","review_comments_url":"https://api.github.com/repos/projectatomic/libpod/pulls/942/comments","review_comment_url":"https://api.github.com/repos/projectatomic/libpod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/libpod/issues/942/comments","statuses_url":"https://api.github.com/repos/projectatomic/libpod/statuses/b11e7197f9f9364487fc3d3495c4a086f5fc6828","head":{"label":"rhatdan:container","ref":"container","sha":"b11e7197f9f9364487fc3d3495c4a086f5fc6828","user":{"login":"rhatdan","id":2000835,"node_id":"MDQ6VXNlcjIwMDA4MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/2000835?v=4","gravatar_id":"","url":"https://api.github.com/users/rhatdan","html_url":"https://github.com/rhatdan","followers_url":"https://api.github.com/users/rhatdan/followers","following_url":"https://api.github.com/users/rhatdan/following{/other_user}","gists_url":"https://api.github.com/users/rhatdan/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatdan/subscriptions","organizations_url":"https://api.github.com/users/rhatdan/orgs","repos_url":"https://api.github.com/users/rhatdan/repos","events_url":"https://api.github.com/users/rhatdan/events{/privacy}","received_events_url":"https://api.github.com/users/rhatdan/received_events","type":"User","site_admin":false},"repo":{"id":109172225,"node_id":"MDEwOlJlcG9zaXRvcnkxMDkxNzIyMjU=","name":"libpod","full_name":"rhatdan/libpod","owner":{"login":"rhatdan","id":2000835,"node_id":"MDQ6VXNlcjIwMDA4MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/2000835?v=4","gravatar_id":"","url":"https://api.github.com/users/rhatdan","html_url":"https://github.com/rhatdan","followers_url":"https://api.github.com/users/rhatdan/followers","following_url":"https://api.github.com/users/rhatdan/following{/other_user}","gists_url":"https://api.github.com/users/rhatdan/gists{/gist_id}","starred_url":"https://api.github.com/users/rhatdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhatdan/subscriptions","organizations_url":"https://api.github.com/users/rhatdan/orgs","repos_url":"https://api.github.com/users/rhatdan/repos","events_url":"https://api.github.com/users/rhatdan/events{/privacy}","received_events_url":"https://api.github.com/users/rhatdan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhatdan/libpod","description":"libpod is a library used to create container pods.","fork":true,"url":"https://api.github.com/repos/rhatdan/libpod","forks_url":"https://api.github.com/repos/rhatdan/libpod/forks","keys_url":"https://api.github.com/repos/rhatdan/libpod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhatdan/libpod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhatdan/libpod/teams","hooks_url":"https://api.github.com/repos/rhatdan/libpod/hooks","issue_events_url":"https://api.github.com/repos/rhatdan/libpod/issues/events{/number}","events_url":"https://api.github.com/repos/rhatdan/libpod/events","assignees_url":"https://api.github.com/repos/rhatdan/libpod/assignees{/user}","branches_url":"https://api.github.com/repos/rhatdan/libpod/branches{/branch}","tags_url":"https://api.github.com/repos/rhatdan/libpod/tags","blobs_url":"https://api.github.com/repos/rhatdan/libpod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhatdan/libpod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhatdan/libpod/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhatdan/libpod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhatdan/libpod/statuses/{sha}","languages_url":"https://api.github.com/repos/rhatdan/libpod/languages","stargazers_url":"https://api.github.com/repos/rhatdan/libpod/stargazers","contributors_url":"https://api.github.com/repos/rhatdan/libpod/contributors","subscribers_url":"https://api.github.com/repos/rhatdan/libpod/subscribers","subscription_url":"https://api.github.com/repos/rhatdan/libpod/subscription","commits_url":"https://api.github.com/repos/rhatdan/libpod/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhatdan/libpod/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhatdan/libpod/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhatdan/libpod/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhatdan/libpod/contents/{+path}","compare_url":"https://api.github.com/repos/rhatdan/libpod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhatdan/libpod/merges","archive_url":"https://api.github.com/repos/rhatdan/libpod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhatdan/libpod/downloads","issues_url":"https://api.github.com/repos/rhatdan/libpod/issues{/number}","pulls_url":"https://api.github.com/repos/rhatdan/libpod/pulls{/number}","milestones_url":"https://api.github.com/repos/rhatdan/libpod/milestones{/number}","notifications_url":"https://api.github.com/repos/rhatdan/libpod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhatdan/libpod/labels{/name}","releases_url":"https://api.github.com/repos/rhatdan/libpod/releases{/id}","deployments_url":"https://api.github.com/repos/rhatdan/libpod/deployments","created_at":"2017-11-01T19:07:29Z","updated_at":"2017-11-01T19:07:34Z","pushed_at":"2018-06-24T11:02:31Z","git_url":"git://github.com/rhatdan/libpod.git","ssh_url":"git@github.com:rhatdan/libpod.git","clone_url":"https://github.com/rhatdan/libpod.git","svn_url":"https://github.com/rhatdan/libpod","homepage":null,"size":15137,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"e89bbd60687cd3ecf361e2d286791ece2f3b5d66","user":{"login":"projectatomic","id":6852258,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":109145553,"node_id":"MDEwOlJlcG9zaXRvcnkxMDkxNDU1NTM=","name":"libpod","full_name":"projectatomic/libpod","owner":{"login":"projectatomic","id":6852258,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/libpod","description":"libpod is a library used to create container pods.","fork":false,"url":"https://api.github.com/repos/projectatomic/libpod","forks_url":"https://api.github.com/repos/projectatomic/libpod/forks","keys_url":"https://api.github.com/repos/projectatomic/libpod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/libpod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/libpod/teams","hooks_url":"https://api.github.com/repos/projectatomic/libpod/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/libpod/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/libpod/events","assignees_url":"https://api.github.com/repos/projectatomic/libpod/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/libpod/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/libpod/tags","blobs_url":"https://api.github.com/repos/projectatomic/libpod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/libpod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/libpod/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/libpod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/libpod/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/libpod/languages","stargazers_url":"https://api.github.com/repos/projectatomic/libpod/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/libpod/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/libpod/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/libpod/subscription","commits_url":"https://api.github.com/repos/projectatomic/libpod/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/libpod/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/libpod/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/libpod/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/libpod/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/libpod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/libpod/merges","archive_url":"https://api.github.com/repos/projectatomic/libpod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/libpod/downloads","issues_url":"https://api.github.com/repos/projectatomic/libpod/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/libpod/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/libpod/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/libpod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/libpod/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/libpod/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/libpod/deployments","created_at":"2017-11-01T15:01:27Z","updated_at":"2018-06-24T13:44:08Z","pushed_at":"2018-06-25T13:13:42Z","git_url":"git://github.com/projectatomic/libpod.git","ssh_url":"git@github.com:projectatomic/libpod.git","clone_url":"https://github.com/projectatomic/libpod.git","svn_url":"https://github.com/projectatomic/libpod","homepage":null,"size":13163,"stargazers_count":161,"watchers_count":161,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":54,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":56,"open_issues":54,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/942"},"html":{"href":"https://github.com/projectatomic/libpod/pull/942"},"issue":{"href":"https://api.github.com/repos/projectatomic/libpod/issues/942"},"comments":{"href":"https://api.github.com/repos/projectatomic/libpod/issues/942/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/942/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/942/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/libpod/statuses/b11e7197f9f9364487fc3d3495c4a086f5fc6828"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mheon"}}