{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/47929335","id":47929335,"diff_hunk":"@@ -0,0 +1,51 @@\n+// +build experimental\n+\n+package client\n+\n+import (\n+\t\"fmt\"\n+\n+\tCli \"github.com/docker/docker/cli\"\n+\tflag \"github.com/docker/docker/pkg/mflag\"\n+\t\"github.com/docker/docker/runconfig\"\n+)\n+\n+// CmdRestore restores the process in a checkpointed container\n+//\n+// Usage: docker restore CONTAINER\n+func (cli *DockerCli) CmdRestore(args ...string) error {\n+\tcmd := Cli.Subcmd(\"restore\", []string{\"CONTAINER [CONTAINER...]\"}, \"Restore one or more checkpointed containers\", true)","path":"api/client/restore.go","position":17,"original_position":17,"commit_id":"66581cd28699995129e287a3613647dab31fb56f","original_commit_id":"66581cd28699995129e287a3613647dab31fb56f","user":{"login":"runcom","id":849915,"avatar_url":"https://avatars.githubusercontent.com/u/849915?v=3","gravatar_id":"","url":"https://api.github.com/users/runcom","html_url":"https://github.com/runcom","followers_url":"https://api.github.com/users/runcom/followers","following_url":"https://api.github.com/users/runcom/following{/other_user}","gists_url":"https://api.github.com/users/runcom/gists{/gist_id}","starred_url":"https://api.github.com/users/runcom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runcom/subscriptions","organizations_url":"https://api.github.com/users/runcom/orgs","repos_url":"https://api.github.com/users/runcom/repos","events_url":"https://api.github.com/users/runcom/events{/privacy}","received_events_url":"https://api.github.com/users/runcom/received_events","type":"User","site_admin":false},"body":"same https://github.com/docker/docker/blob/master/cli/common.go#L28","created_at":"2015-12-17T16:49:21Z","updated_at":"2015-12-17T16:49:21Z","html_url":"https://github.com/docker/docker/pull/13602#discussion_r47929335","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/13602","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/47929335"},"html":{"href":"https://github.com/docker/docker/pull/13602#discussion_r47929335"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/13602"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/13602","id":36540710,"html_url":"https://github.com/docker/docker/pull/13602","diff_url":"https://github.com/docker/docker/pull/13602.diff","patch_url":"https://github.com/docker/docker/pull/13602.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/13602","number":13602,"state":"open","locked":false,"title":"Add checkpoint/restore to docker API","user":{"login":"boucher","id":22065,"avatar_url":"https://avatars.githubusercontent.com/u/22065?v=3","gravatar_id":"","url":"https://api.github.com/users/boucher","html_url":"https://github.com/boucher","followers_url":"https://api.github.com/users/boucher/followers","following_url":"https://api.github.com/users/boucher/following{/other_user}","gists_url":"https://api.github.com/users/boucher/gists{/gist_id}","starred_url":"https://api.github.com/users/boucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boucher/subscriptions","organizations_url":"https://api.github.com/users/boucher/orgs","repos_url":"https://api.github.com/users/boucher/repos","events_url":"https://api.github.com/users/boucher/events{/privacy}","received_events_url":"https://api.github.com/users/boucher/received_events","type":"User","site_admin":false},"body":"Adds support in the daemon and driver for checkpoint and restore, and exposes that in the API, but not in the CLI yet. ","created_at":"2015-05-29T20:12:15Z","updated_at":"2015-12-17T16:49:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97d7b300fda90d5020ee8ade7aa2134353f9ba47","assignee":{"login":"estesp","id":1397980,"avatar_url":"https://avatars.githubusercontent.com/u/1397980?v=3","gravatar_id":"","url":"https://api.github.com/users/estesp","html_url":"https://github.com/estesp","followers_url":"https://api.github.com/users/estesp/followers","following_url":"https://api.github.com/users/estesp/following{/other_user}","gists_url":"https://api.github.com/users/estesp/gists{/gist_id}","starred_url":"https://api.github.com/users/estesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estesp/subscriptions","organizations_url":"https://api.github.com/users/estesp/orgs","repos_url":"https://api.github.com/users/estesp/repos","events_url":"https://api.github.com/users/estesp/events{/privacy}","received_events_url":"https://api.github.com/users/estesp/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/44","html_url":"https://github.com/docker/docker/milestones/1.10","labels_url":"https://api.github.com/repos/docker/docker/milestones/44/labels","id":1351533,"number":44,"title":"1.10","description":"","creator":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":40,"state":"open","created_at":"2015-10-12T18:21:55Z","updated_at":"2015-12-17T15:37:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/docker/docker/pulls/13602/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/13602/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/13602/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/66581cd28699995129e287a3613647dab31fb56f","head":{"label":"boucher:cr-combined","ref":"cr-combined","sha":"66581cd28699995129e287a3613647dab31fb56f","user":{"login":"boucher","id":22065,"avatar_url":"https://avatars.githubusercontent.com/u/22065?v=3","gravatar_id":"","url":"https://api.github.com/users/boucher","html_url":"https://github.com/boucher","followers_url":"https://api.github.com/users/boucher/followers","following_url":"https://api.github.com/users/boucher/following{/other_user}","gists_url":"https://api.github.com/users/boucher/gists{/gist_id}","starred_url":"https://api.github.com/users/boucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boucher/subscriptions","organizations_url":"https://api.github.com/users/boucher/orgs","repos_url":"https://api.github.com/users/boucher/repos","events_url":"https://api.github.com/users/boucher/events{/privacy}","received_events_url":"https://api.github.com/users/boucher/received_events","type":"User","site_admin":false},"repo":{"id":33453574,"name":"docker","full_name":"boucher/docker","owner":{"login":"boucher","id":22065,"avatar_url":"https://avatars.githubusercontent.com/u/22065?v=3","gravatar_id":"","url":"https://api.github.com/users/boucher","html_url":"https://github.com/boucher","followers_url":"https://api.github.com/users/boucher/followers","following_url":"https://api.github.com/users/boucher/following{/other_user}","gists_url":"https://api.github.com/users/boucher/gists{/gist_id}","starred_url":"https://api.github.com/users/boucher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boucher/subscriptions","organizations_url":"https://api.github.com/users/boucher/orgs","repos_url":"https://api.github.com/users/boucher/repos","events_url":"https://api.github.com/users/boucher/events{/privacy}","received_events_url":"https://api.github.com/users/boucher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boucher/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/boucher/docker","forks_url":"https://api.github.com/repos/boucher/docker/forks","keys_url":"https://api.github.com/repos/boucher/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boucher/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boucher/docker/teams","hooks_url":"https://api.github.com/repos/boucher/docker/hooks","issue_events_url":"https://api.github.com/repos/boucher/docker/issues/events{/number}","events_url":"https://api.github.com/repos/boucher/docker/events","assignees_url":"https://api.github.com/repos/boucher/docker/assignees{/user}","branches_url":"https://api.github.com/repos/boucher/docker/branches{/branch}","tags_url":"https://api.github.com/repos/boucher/docker/tags","blobs_url":"https://api.github.com/repos/boucher/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boucher/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boucher/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/boucher/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boucher/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/boucher/docker/languages","stargazers_url":"https://api.github.com/repos/boucher/docker/stargazers","contributors_url":"https://api.github.com/repos/boucher/docker/contributors","subscribers_url":"https://api.github.com/repos/boucher/docker/subscribers","subscription_url":"https://api.github.com/repos/boucher/docker/subscription","commits_url":"https://api.github.com/repos/boucher/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/boucher/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/boucher/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/boucher/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/boucher/docker/contents/{+path}","compare_url":"https://api.github.com/repos/boucher/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boucher/docker/merges","archive_url":"https://api.github.com/repos/boucher/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boucher/docker/downloads","issues_url":"https://api.github.com/repos/boucher/docker/issues{/number}","pulls_url":"https://api.github.com/repos/boucher/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/boucher/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/boucher/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boucher/docker/labels{/name}","releases_url":"https://api.github.com/repos/boucher/docker/releases{/id}","created_at":"2015-04-05T20:09:55Z","updated_at":"2015-12-09T02:35:27Z","pushed_at":"2015-12-16T16:17:45Z","git_url":"git://github.com/boucher/docker.git","ssh_url":"git@github.com:boucher/docker.git","clone_url":"https://github.com/boucher/docker.git","svn_url":"https://github.com/boucher/docker","homepage":"http://www.docker.com","size":76806,"stargazers_count":16,"watchers_count":16,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":7,"forks":6,"open_issues":7,"watchers":16,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"6f930a2ffa57b022947743d6f16751a27b93fbed","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":7691631,"name":"docker","full_name":"docker/docker","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/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-12-17T15:53:59Z","pushed_at":"2015-12-17T16:01:55Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":118772,"stargazers_count":27089,"watchers_count":27089,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7388,"mirror_url":null,"open_issues_count":1242,"forks":7388,"open_issues":1242,"watchers":27089,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/13602"},"html":{"href":"https://github.com/docker/docker/pull/13602"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/13602"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/13602/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/13602/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/13602/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/66581cd28699995129e287a3613647dab31fb56f"}}}}