{"action":"created","comment":{"url":"https://api.github.com/repos/swipely/docker-api/pulls/comments/38152706","id":38152706,"diff_hunk":"@@ -139,23 +139,28 @@ image.insert_local('localPath' => [ 'Gemfile', 'Rakefile' ], 'outputPath' => '/'\n # => Docker::Image { :id => eb693ec80, :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }\n \n # Add a repo name to Image.\n+# docker command for reference: docker tag <IMAGE.ID> base2\n image.tag('repo' => 'base2', 'force' => true)\n # => [\"base2\"]\n \n # Add a repo name and tag an Image.\n+# docker command for reference: docker tag <IMAGE.ID> base2:latest\n image.tag('repo' => 'base2', 'tag' => 'latest', force: true)\n # => [\"base2:latest\"]\n \n # Get more information about the Image.\n+# docker command for reference: docker inspect <IMAGE.ID>\n image.json\n # => {\"id\"=>\"67859327bf22ef8b5b9b4a6781f72b2015acd894fa03ce07e0db7af170ba468c\", \"comment\"=>\"Imported from -\", \"created\"=>\"2013-06-19T18:42:58.287944526-04:00\", \"container_config\"=>{\"Hostname\"=>\"\", \"User\"=>\"\", \"Memory\"=>0, \"MemorySwap\"=>0, \"CpuShares\"=>0, \"AttachStdin\"=>false, \"AttachStdout\"=>false, \"AttachStderr\"=>false, \"PortSpecs\"=>nil, \"Tty\"=>false, \"OpenStdin\"=>false, \"StdinOnce\"=>false, \"Env\"=>nil, \"Cmd\"=>nil, \"Dns\"=>nil, \"Image\"=>\"\", \"Volumes\"=>nil, \"VolumesFrom\"=>\"\"}, \"docker_version\"=>\"0.4.0\", \"architecture\"=>\"x86_64\"}\n \n # View the history of the Image.\n+# docker command for reference, in fact it mixed the output from two commands: docker image <IMAGE.ID> and docker history <IMAGE.ID>","path":"README.md","position":19,"original_position":19,"commit_id":"85d2e218f5056ad9826c7beb06d65714e61ec2b1","original_commit_id":"85d2e218f5056ad9826c7beb06d65714e61ec2b1","user":{"login":"SydOps","id":8954908,"avatar_url":"https://avatars.githubusercontent.com/u/8954908?v=3","gravatar_id":"","url":"https://api.github.com/users/SydOps","html_url":"https://github.com/SydOps","followers_url":"https://api.github.com/users/SydOps/followers","following_url":"https://api.github.com/users/SydOps/following{/other_user}","gists_url":"https://api.github.com/users/SydOps/gists{/gist_id}","starred_url":"https://api.github.com/users/SydOps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SydOps/subscriptions","organizations_url":"https://api.github.com/users/SydOps/orgs","repos_url":"https://api.github.com/users/SydOps/repos","events_url":"https://api.github.com/users/SydOps/events{/privacy}","received_events_url":"https://api.github.com/users/SydOps/received_events","type":"User","site_admin":false},"body":"The output from `image.history` has no direct docker command to be mapping. The output has the information from  two docker commands: \r\n\r\n```\r\ndocker image <IMAGE.ID> \r\ndocker history <IMAGE.ID>\r\n```\r\n\r\nLet me think, maybe remove this comment is better.","created_at":"2015-08-27T22:12:01Z","updated_at":"2015-08-27T22:12:01Z","html_url":"https://github.com/swipely/docker-api/pull/311#discussion_r38152706","pull_request_url":"https://api.github.com/repos/swipely/docker-api/pulls/311","_links":{"self":{"href":"https://api.github.com/repos/swipely/docker-api/pulls/comments/38152706"},"html":{"href":"https://github.com/swipely/docker-api/pull/311#discussion_r38152706"},"pull_request":{"href":"https://api.github.com/repos/swipely/docker-api/pulls/311"}}},"pull_request":{"url":"https://api.github.com/repos/swipely/docker-api/pulls/311","id":43480137,"html_url":"https://github.com/swipely/docker-api/pull/311","diff_url":"https://github.com/swipely/docker-api/pull/311.diff","patch_url":"https://github.com/swipely/docker-api/pull/311.patch","issue_url":"https://api.github.com/repos/swipely/docker-api/issues/311","number":311,"state":"open","locked":false,"title":"Add reference mapping to docker commands - #305 - stage 2","user":{"login":"SydOps","id":8954908,"avatar_url":"https://avatars.githubusercontent.com/u/8954908?v=3","gravatar_id":"","url":"https://api.github.com/users/SydOps","html_url":"https://github.com/SydOps","followers_url":"https://api.github.com/users/SydOps/followers","following_url":"https://api.github.com/users/SydOps/following{/other_user}","gists_url":"https://api.github.com/users/SydOps/gists{/gist_id}","starred_url":"https://api.github.com/users/SydOps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SydOps/subscriptions","organizations_url":"https://api.github.com/users/SydOps/orgs","repos_url":"https://api.github.com/users/SydOps/repos","events_url":"https://api.github.com/users/SydOps/events{/privacy}","received_events_url":"https://api.github.com/users/SydOps/received_events","type":"User","site_admin":false},"body":"Add reference mapping to docker commands in comments","created_at":"2015-08-27T05:13:23Z","updated_at":"2015-08-27T22:12:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"599336d3569303eac099d06bcaafb8838db040bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swipely/docker-api/pulls/311/commits","review_comments_url":"https://api.github.com/repos/swipely/docker-api/pulls/311/comments","review_comment_url":"https://api.github.com/repos/swipely/docker-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swipely/docker-api/issues/311/comments","statuses_url":"https://api.github.com/repos/swipely/docker-api/statuses/85d2e218f5056ad9826c7beb06d65714e61ec2b1","head":{"label":"BWITS:master","ref":"master","sha":"85d2e218f5056ad9826c7beb06d65714e61ec2b1","user":{"login":"BWITS","id":12312228,"avatar_url":"https://avatars.githubusercontent.com/u/12312228?v=3","gravatar_id":"","url":"https://api.github.com/users/BWITS","html_url":"https://github.com/BWITS","followers_url":"https://api.github.com/users/BWITS/followers","following_url":"https://api.github.com/users/BWITS/following{/other_user}","gists_url":"https://api.github.com/users/BWITS/gists{/gist_id}","starred_url":"https://api.github.com/users/BWITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BWITS/subscriptions","organizations_url":"https://api.github.com/users/BWITS/orgs","repos_url":"https://api.github.com/users/BWITS/repos","events_url":"https://api.github.com/users/BWITS/events{/privacy}","received_events_url":"https://api.github.com/users/BWITS/received_events","type":"Organization","site_admin":false},"repo":{"id":37804931,"name":"docker-api","full_name":"BWITS/docker-api","owner":{"login":"BWITS","id":12312228,"avatar_url":"https://avatars.githubusercontent.com/u/12312228?v=3","gravatar_id":"","url":"https://api.github.com/users/BWITS","html_url":"https://github.com/BWITS","followers_url":"https://api.github.com/users/BWITS/followers","following_url":"https://api.github.com/users/BWITS/following{/other_user}","gists_url":"https://api.github.com/users/BWITS/gists{/gist_id}","starred_url":"https://api.github.com/users/BWITS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BWITS/subscriptions","organizations_url":"https://api.github.com/users/BWITS/orgs","repos_url":"https://api.github.com/users/BWITS/repos","events_url":"https://api.github.com/users/BWITS/events{/privacy}","received_events_url":"https://api.github.com/users/BWITS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BWITS/docker-api","description":"A lightweight Ruby client for the Docker Remote API","fork":true,"url":"https://api.github.com/repos/BWITS/docker-api","forks_url":"https://api.github.com/repos/BWITS/docker-api/forks","keys_url":"https://api.github.com/repos/BWITS/docker-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BWITS/docker-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BWITS/docker-api/teams","hooks_url":"https://api.github.com/repos/BWITS/docker-api/hooks","issue_events_url":"https://api.github.com/repos/BWITS/docker-api/issues/events{/number}","events_url":"https://api.github.com/repos/BWITS/docker-api/events","assignees_url":"https://api.github.com/repos/BWITS/docker-api/assignees{/user}","branches_url":"https://api.github.com/repos/BWITS/docker-api/branches{/branch}","tags_url":"https://api.github.com/repos/BWITS/docker-api/tags","blobs_url":"https://api.github.com/repos/BWITS/docker-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BWITS/docker-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BWITS/docker-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/BWITS/docker-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BWITS/docker-api/statuses/{sha}","languages_url":"https://api.github.com/repos/BWITS/docker-api/languages","stargazers_url":"https://api.github.com/repos/BWITS/docker-api/stargazers","contributors_url":"https://api.github.com/repos/BWITS/docker-api/contributors","subscribers_url":"https://api.github.com/repos/BWITS/docker-api/subscribers","subscription_url":"https://api.github.com/repos/BWITS/docker-api/subscription","commits_url":"https://api.github.com/repos/BWITS/docker-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/BWITS/docker-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/BWITS/docker-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/BWITS/docker-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/BWITS/docker-api/contents/{+path}","compare_url":"https://api.github.com/repos/BWITS/docker-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BWITS/docker-api/merges","archive_url":"https://api.github.com/repos/BWITS/docker-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BWITS/docker-api/downloads","issues_url":"https://api.github.com/repos/BWITS/docker-api/issues{/number}","pulls_url":"https://api.github.com/repos/BWITS/docker-api/pulls{/number}","milestones_url":"https://api.github.com/repos/BWITS/docker-api/milestones{/number}","notifications_url":"https://api.github.com/repos/BWITS/docker-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BWITS/docker-api/labels{/name}","releases_url":"https://api.github.com/repos/BWITS/docker-api/releases{/id}","created_at":"2015-06-21T10:25:53Z","updated_at":"2015-06-21T10:25:54Z","pushed_at":"2015-08-27T05:12:11Z","git_url":"git://github.com/BWITS/docker-api.git","ssh_url":"git@github.com:BWITS/docker-api.git","clone_url":"https://github.com/BWITS/docker-api.git","svn_url":"https://github.com/BWITS/docker-api","homepage":"","size":17967,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"swipely:master","ref":"master","sha":"ea94170a40690b6f6bc93106c2e2e94469e980b9","user":{"login":"swipely","id":58479,"avatar_url":"https://avatars.githubusercontent.com/u/58479?v=3","gravatar_id":"","url":"https://api.github.com/users/swipely","html_url":"https://github.com/swipely","followers_url":"https://api.github.com/users/swipely/followers","following_url":"https://api.github.com/users/swipely/following{/other_user}","gists_url":"https://api.github.com/users/swipely/gists{/gist_id}","starred_url":"https://api.github.com/users/swipely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swipely/subscriptions","organizations_url":"https://api.github.com/users/swipely/orgs","repos_url":"https://api.github.com/users/swipely/repos","events_url":"https://api.github.com/users/swipely/events{/privacy}","received_events_url":"https://api.github.com/users/swipely/received_events","type":"Organization","site_admin":false},"repo":{"id":10674058,"name":"docker-api","full_name":"swipely/docker-api","owner":{"login":"swipely","id":58479,"avatar_url":"https://avatars.githubusercontent.com/u/58479?v=3","gravatar_id":"","url":"https://api.github.com/users/swipely","html_url":"https://github.com/swipely","followers_url":"https://api.github.com/users/swipely/followers","following_url":"https://api.github.com/users/swipely/following{/other_user}","gists_url":"https://api.github.com/users/swipely/gists{/gist_id}","starred_url":"https://api.github.com/users/swipely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swipely/subscriptions","organizations_url":"https://api.github.com/users/swipely/orgs","repos_url":"https://api.github.com/users/swipely/repos","events_url":"https://api.github.com/users/swipely/events{/privacy}","received_events_url":"https://api.github.com/users/swipely/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swipely/docker-api","description":"A lightweight Ruby client for the Docker Remote API","fork":false,"url":"https://api.github.com/repos/swipely/docker-api","forks_url":"https://api.github.com/repos/swipely/docker-api/forks","keys_url":"https://api.github.com/repos/swipely/docker-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swipely/docker-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swipely/docker-api/teams","hooks_url":"https://api.github.com/repos/swipely/docker-api/hooks","issue_events_url":"https://api.github.com/repos/swipely/docker-api/issues/events{/number}","events_url":"https://api.github.com/repos/swipely/docker-api/events","assignees_url":"https://api.github.com/repos/swipely/docker-api/assignees{/user}","branches_url":"https://api.github.com/repos/swipely/docker-api/branches{/branch}","tags_url":"https://api.github.com/repos/swipely/docker-api/tags","blobs_url":"https://api.github.com/repos/swipely/docker-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swipely/docker-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swipely/docker-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/swipely/docker-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swipely/docker-api/statuses/{sha}","languages_url":"https://api.github.com/repos/swipely/docker-api/languages","stargazers_url":"https://api.github.com/repos/swipely/docker-api/stargazers","contributors_url":"https://api.github.com/repos/swipely/docker-api/contributors","subscribers_url":"https://api.github.com/repos/swipely/docker-api/subscribers","subscription_url":"https://api.github.com/repos/swipely/docker-api/subscription","commits_url":"https://api.github.com/repos/swipely/docker-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/swipely/docker-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/swipely/docker-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/swipely/docker-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/swipely/docker-api/contents/{+path}","compare_url":"https://api.github.com/repos/swipely/docker-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swipely/docker-api/merges","archive_url":"https://api.github.com/repos/swipely/docker-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swipely/docker-api/downloads","issues_url":"https://api.github.com/repos/swipely/docker-api/issues{/number}","pulls_url":"https://api.github.com/repos/swipely/docker-api/pulls{/number}","milestones_url":"https://api.github.com/repos/swipely/docker-api/milestones{/number}","notifications_url":"https://api.github.com/repos/swipely/docker-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swipely/docker-api/labels{/name}","releases_url":"https://api.github.com/repos/swipely/docker-api/releases{/id}","created_at":"2013-06-13T19:29:58Z","updated_at":"2015-08-27T14:18:59Z","pushed_at":"2015-08-27T05:13:24Z","git_url":"git://github.com/swipely/docker-api.git","ssh_url":"git@github.com:swipely/docker-api.git","clone_url":"https://github.com/swipely/docker-api.git","svn_url":"https://github.com/swipely/docker-api","homepage":"","size":17986,"stargazers_count":467,"watchers_count":467,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":143,"mirror_url":null,"open_issues_count":8,"forks":143,"open_issues":8,"watchers":467,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swipely/docker-api/pulls/311"},"html":{"href":"https://github.com/swipely/docker-api/pull/311"},"issue":{"href":"https://api.github.com/repos/swipely/docker-api/issues/311"},"comments":{"href":"https://api.github.com/repos/swipely/docker-api/issues/311/comments"},"review_comments":{"href":"https://api.github.com/repos/swipely/docker-api/pulls/311/comments"},"review_comment":{"href":"https://api.github.com/repos/swipely/docker-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swipely/docker-api/pulls/311/commits"},"statuses":{"href":"https://api.github.com/repos/swipely/docker-api/statuses/85d2e218f5056ad9826c7beb06d65714e61ec2b1"}}}}