{"action":"created","comment":{"url":"https://api.github.com/repos/containers/libpod/pulls/comments/240652170","pull_request_review_id":183730126,"id":240652170,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDY1MjE3MA==","diff_hunk":"@@ -47,6 +51,10 @@ func restartCmd(c *cli.Context) error {\n \t\trestartContainers []*libpod.Container\n \t)\n \n+\tif os.Geteuid() != 0 {","path":"cmd/podman/restart.go","position":18,"original_position":18,"commit_id":"9a7416c3426d6fbad1205f333b8b2c6da4908be2","original_commit_id":"9a7416c3426d6fbad1205f333b8b2c6da4908be2","user":{"login":"TomSweeneyRedHat","id":25613829,"node_id":"MDQ6VXNlcjI1NjEzODI5","avatar_url":"https://avatars3.githubusercontent.com/u/25613829?v=4","gravatar_id":"","url":"https://api.github.com/users/TomSweeneyRedHat","html_url":"https://github.com/TomSweeneyRedHat","followers_url":"https://api.github.com/users/TomSweeneyRedHat/followers","following_url":"https://api.github.com/users/TomSweeneyRedHat/following{/other_user}","gists_url":"https://api.github.com/users/TomSweeneyRedHat/gists{/gist_id}","starred_url":"https://api.github.com/users/TomSweeneyRedHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomSweeneyRedHat/subscriptions","organizations_url":"https://api.github.com/users/TomSweeneyRedHat/orgs","repos_url":"https://api.github.com/users/TomSweeneyRedHat/repos","events_url":"https://api.github.com/users/TomSweeneyRedHat/events{/privacy}","received_events_url":"https://api.github.com/users/TomSweeneyRedHat/received_events","type":"User","site_admin":false},"body":"Thx for the 411 @giuseppe ","created_at":"2018-12-11T15:16:03Z","updated_at":"2018-12-11T15:16:03Z","html_url":"https://github.com/containers/libpod/pull/1975#discussion_r240652170","pull_request_url":"https://api.github.com/repos/containers/libpod/pulls/1975","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/containers/libpod/pulls/comments/240652170"},"html":{"href":"https://github.com/containers/libpod/pull/1975#discussion_r240652170"},"pull_request":{"href":"https://api.github.com/repos/containers/libpod/pulls/1975"}},"in_reply_to_id":240584381},"pull_request":{"url":"https://api.github.com/repos/containers/libpod/pulls/1975","id":237603710,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3NjAzNzEw","html_url":"https://github.com/containers/libpod/pull/1975","diff_url":"https://github.com/containers/libpod/pull/1975.diff","patch_url":"https://github.com/containers/libpod/pull/1975.patch","issue_url":"https://api.github.com/repos/containers/libpod/issues/1975","number":1975,"state":"open","locked":false,"title":"rootless: fix restart when using fuse-overlayfs","user":{"login":"giuseppe","id":67430,"node_id":"MDQ6VXNlcjY3NDMw","avatar_url":"https://avatars0.githubusercontent.com/u/67430?v=4","gravatar_id":"","url":"https://api.github.com/users/giuseppe","html_url":"https://github.com/giuseppe","followers_url":"https://api.github.com/users/giuseppe/followers","following_url":"https://api.github.com/users/giuseppe/following{/other_user}","gists_url":"https://api.github.com/users/giuseppe/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppe/subscriptions","organizations_url":"https://api.github.com/users/giuseppe/orgs","repos_url":"https://api.github.com/users/giuseppe/repos","events_url":"https://api.github.com/users/giuseppe/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppe/received_events","type":"User","site_admin":false},"body":"With rootless containers we cannot really restart an existing container\r\nas we would need to join the mount namespace as well to be able to reuse\r\nthe storage, so ensure the container is stopped first.\r\n\r\nCloses: https://github.com/containers/libpod/issues/1965\r\n\r\nSigned-off-by: Giuseppe Scrivano <gscrivan@redhat.com>","created_at":"2018-12-11T09:24:17Z","updated_at":"2018-12-11T15:16:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5ff3119c5bc20f85fc788e4e13d2ad1cfd205f3","assignee":null,"assignees":[],"requested_reviewers":[{"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},{"login":"vrothberg","id":11679875,"node_id":"MDQ6VXNlcjExNjc5ODc1","avatar_url":"https://avatars1.githubusercontent.com/u/11679875?v=4","gravatar_id":"","url":"https://api.github.com/users/vrothberg","html_url":"https://github.com/vrothberg","followers_url":"https://api.github.com/users/vrothberg/followers","following_url":"https://api.github.com/users/vrothberg/following{/other_user}","gists_url":"https://api.github.com/users/vrothberg/gists{/gist_id}","starred_url":"https://api.github.com/users/vrothberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrothberg/subscriptions","organizations_url":"https://api.github.com/users/vrothberg/orgs","repos_url":"https://api.github.com/users/vrothberg/repos","events_url":"https://api.github.com/users/vrothberg/events{/privacy}","received_events_url":"https://api.github.com/users/vrothberg/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1070348377,"node_id":"MDU6TGFiZWwxMDcwMzQ4Mzc3","url":"https://api.github.com/repos/containers/libpod/labels/approved","name":"approved","color":"0ffa16","default":false},{"id":1069218657,"node_id":"MDU6TGFiZWwxMDY5MjE4NjU3","url":"https://api.github.com/repos/containers/libpod/labels/size/M","name":"size/M","color":"eebb00","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/containers/libpod/pulls/1975/commits","review_comments_url":"https://api.github.com/repos/containers/libpod/pulls/1975/comments","review_comment_url":"https://api.github.com/repos/containers/libpod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/containers/libpod/issues/1975/comments","statuses_url":"https://api.github.com/repos/containers/libpod/statuses/9a7416c3426d6fbad1205f333b8b2c6da4908be2","head":{"label":"giuseppe:fix-rootless-restart","ref":"fix-rootless-restart","sha":"9a7416c3426d6fbad1205f333b8b2c6da4908be2","user":{"login":"giuseppe","id":67430,"node_id":"MDQ6VXNlcjY3NDMw","avatar_url":"https://avatars0.githubusercontent.com/u/67430?v=4","gravatar_id":"","url":"https://api.github.com/users/giuseppe","html_url":"https://github.com/giuseppe","followers_url":"https://api.github.com/users/giuseppe/followers","following_url":"https://api.github.com/users/giuseppe/following{/other_user}","gists_url":"https://api.github.com/users/giuseppe/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppe/subscriptions","organizations_url":"https://api.github.com/users/giuseppe/orgs","repos_url":"https://api.github.com/users/giuseppe/repos","events_url":"https://api.github.com/users/giuseppe/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppe/received_events","type":"User","site_admin":false},"repo":{"id":123573933,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1NzM5MzM=","name":"libpod","full_name":"giuseppe/libpod","private":false,"owner":{"login":"giuseppe","id":67430,"node_id":"MDQ6VXNlcjY3NDMw","avatar_url":"https://avatars0.githubusercontent.com/u/67430?v=4","gravatar_id":"","url":"https://api.github.com/users/giuseppe","html_url":"https://github.com/giuseppe","followers_url":"https://api.github.com/users/giuseppe/followers","following_url":"https://api.github.com/users/giuseppe/following{/other_user}","gists_url":"https://api.github.com/users/giuseppe/gists{/gist_id}","starred_url":"https://api.github.com/users/giuseppe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giuseppe/subscriptions","organizations_url":"https://api.github.com/users/giuseppe/orgs","repos_url":"https://api.github.com/users/giuseppe/repos","events_url":"https://api.github.com/users/giuseppe/events{/privacy}","received_events_url":"https://api.github.com/users/giuseppe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/giuseppe/libpod","description":"libpod is a library used to create container pods.","fork":true,"url":"https://api.github.com/repos/giuseppe/libpod","forks_url":"https://api.github.com/repos/giuseppe/libpod/forks","keys_url":"https://api.github.com/repos/giuseppe/libpod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giuseppe/libpod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giuseppe/libpod/teams","hooks_url":"https://api.github.com/repos/giuseppe/libpod/hooks","issue_events_url":"https://api.github.com/repos/giuseppe/libpod/issues/events{/number}","events_url":"https://api.github.com/repos/giuseppe/libpod/events","assignees_url":"https://api.github.com/repos/giuseppe/libpod/assignees{/user}","branches_url":"https://api.github.com/repos/giuseppe/libpod/branches{/branch}","tags_url":"https://api.github.com/repos/giuseppe/libpod/tags","blobs_url":"https://api.github.com/repos/giuseppe/libpod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giuseppe/libpod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giuseppe/libpod/git/refs{/sha}","trees_url":"https://api.github.com/repos/giuseppe/libpod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giuseppe/libpod/statuses/{sha}","languages_url":"https://api.github.com/repos/giuseppe/libpod/languages","stargazers_url":"https://api.github.com/repos/giuseppe/libpod/stargazers","contributors_url":"https://api.github.com/repos/giuseppe/libpod/contributors","subscribers_url":"https://api.github.com/repos/giuseppe/libpod/subscribers","subscription_url":"https://api.github.com/repos/giuseppe/libpod/subscription","commits_url":"https://api.github.com/repos/giuseppe/libpod/commits{/sha}","git_commits_url":"https://api.github.com/repos/giuseppe/libpod/git/commits{/sha}","comments_url":"https://api.github.com/repos/giuseppe/libpod/comments{/number}","issue_comment_url":"https://api.github.com/repos/giuseppe/libpod/issues/comments{/number}","contents_url":"https://api.github.com/repos/giuseppe/libpod/contents/{+path}","compare_url":"https://api.github.com/repos/giuseppe/libpod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giuseppe/libpod/merges","archive_url":"https://api.github.com/repos/giuseppe/libpod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giuseppe/libpod/downloads","issues_url":"https://api.github.com/repos/giuseppe/libpod/issues{/number}","pulls_url":"https://api.github.com/repos/giuseppe/libpod/pulls{/number}","milestones_url":"https://api.github.com/repos/giuseppe/libpod/milestones{/number}","notifications_url":"https://api.github.com/repos/giuseppe/libpod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giuseppe/libpod/labels{/name}","releases_url":"https://api.github.com/repos/giuseppe/libpod/releases{/id}","deployments_url":"https://api.github.com/repos/giuseppe/libpod/deployments","created_at":"2018-03-02T11:58:12Z","updated_at":"2018-08-13T12:29:44Z","pushed_at":"2018-12-11T09:24:14Z","git_url":"git://github.com/giuseppe/libpod.git","ssh_url":"git@github.com:giuseppe/libpod.git","clone_url":"https://github.com/giuseppe/libpod.git","svn_url":"https://github.com/giuseppe/libpod","homepage":null,"size":17020,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"containers:master","ref":"master","sha":"235a6300744636f650728f2a7545243aed045c91","user":{"login":"containers","id":5874934,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4NzQ5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5874934?v=4","gravatar_id":"","url":"https://api.github.com/users/containers","html_url":"https://github.com/containers","followers_url":"https://api.github.com/users/containers/followers","following_url":"https://api.github.com/users/containers/following{/other_user}","gists_url":"https://api.github.com/users/containers/gists{/gist_id}","starred_url":"https://api.github.com/users/containers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containers/subscriptions","organizations_url":"https://api.github.com/users/containers/orgs","repos_url":"https://api.github.com/users/containers/repos","events_url":"https://api.github.com/users/containers/events{/privacy}","received_events_url":"https://api.github.com/users/containers/received_events","type":"Organization","site_admin":false},"repo":{"id":109145553,"node_id":"MDEwOlJlcG9zaXRvcnkxMDkxNDU1NTM=","name":"libpod","full_name":"containers/libpod","private":false,"owner":{"login":"containers","id":5874934,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU4NzQ5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5874934?v=4","gravatar_id":"","url":"https://api.github.com/users/containers","html_url":"https://github.com/containers","followers_url":"https://api.github.com/users/containers/followers","following_url":"https://api.github.com/users/containers/following{/other_user}","gists_url":"https://api.github.com/users/containers/gists{/gist_id}","starred_url":"https://api.github.com/users/containers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containers/subscriptions","organizations_url":"https://api.github.com/users/containers/orgs","repos_url":"https://api.github.com/users/containers/repos","events_url":"https://api.github.com/users/containers/events{/privacy}","received_events_url":"https://api.github.com/users/containers/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/containers/libpod","description":"libpod is a library used to create container pods.","fork":false,"url":"https://api.github.com/repos/containers/libpod","forks_url":"https://api.github.com/repos/containers/libpod/forks","keys_url":"https://api.github.com/repos/containers/libpod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/containers/libpod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/containers/libpod/teams","hooks_url":"https://api.github.com/repos/containers/libpod/hooks","issue_events_url":"https://api.github.com/repos/containers/libpod/issues/events{/number}","events_url":"https://api.github.com/repos/containers/libpod/events","assignees_url":"https://api.github.com/repos/containers/libpod/assignees{/user}","branches_url":"https://api.github.com/repos/containers/libpod/branches{/branch}","tags_url":"https://api.github.com/repos/containers/libpod/tags","blobs_url":"https://api.github.com/repos/containers/libpod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/containers/libpod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/containers/libpod/git/refs{/sha}","trees_url":"https://api.github.com/repos/containers/libpod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/containers/libpod/statuses/{sha}","languages_url":"https://api.github.com/repos/containers/libpod/languages","stargazers_url":"https://api.github.com/repos/containers/libpod/stargazers","contributors_url":"https://api.github.com/repos/containers/libpod/contributors","subscribers_url":"https://api.github.com/repos/containers/libpod/subscribers","subscription_url":"https://api.github.com/repos/containers/libpod/subscription","commits_url":"https://api.github.com/repos/containers/libpod/commits{/sha}","git_commits_url":"https://api.github.com/repos/containers/libpod/git/commits{/sha}","comments_url":"https://api.github.com/repos/containers/libpod/comments{/number}","issue_comment_url":"https://api.github.com/repos/containers/libpod/issues/comments{/number}","contents_url":"https://api.github.com/repos/containers/libpod/contents/{+path}","compare_url":"https://api.github.com/repos/containers/libpod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/containers/libpod/merges","archive_url":"https://api.github.com/repos/containers/libpod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/containers/libpod/downloads","issues_url":"https://api.github.com/repos/containers/libpod/issues{/number}","pulls_url":"https://api.github.com/repos/containers/libpod/pulls{/number}","milestones_url":"https://api.github.com/repos/containers/libpod/milestones{/number}","notifications_url":"https://api.github.com/repos/containers/libpod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/containers/libpod/labels{/name}","releases_url":"https://api.github.com/repos/containers/libpod/releases{/id}","deployments_url":"https://api.github.com/repos/containers/libpod/deployments","created_at":"2017-11-01T15:01:27Z","updated_at":"2018-12-11T13:55:56Z","pushed_at":"2018-12-11T15:09:19Z","git_url":"git://github.com/containers/libpod.git","ssh_url":"git@github.com:containers/libpod.git","clone_url":"https://github.com/containers/libpod.git","svn_url":"https://github.com/containers/libpod","homepage":null,"size":16987,"stargazers_count":592,"watchers_count":592,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"archived":false,"open_issues_count":116,"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":106,"open_issues":116,"watchers":592,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/containers/libpod/pulls/1975"},"html":{"href":"https://github.com/containers/libpod/pull/1975"},"issue":{"href":"https://api.github.com/repos/containers/libpod/issues/1975"},"comments":{"href":"https://api.github.com/repos/containers/libpod/issues/1975/comments"},"review_comments":{"href":"https://api.github.com/repos/containers/libpod/pulls/1975/comments"},"review_comment":{"href":"https://api.github.com/repos/containers/libpod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/containers/libpod/pulls/1975/commits"},"statuses":{"href":"https://api.github.com/repos/containers/libpod/statuses/9a7416c3426d6fbad1205f333b8b2c6da4908be2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"TomSweeneyRedHat"}}