{"action":"closed","number":24003,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/24003","id":75369374,"html_url":"https://github.com/docker/docker/pull/24003","diff_url":"https://github.com/docker/docker/pull/24003.diff","patch_url":"https://github.com/docker/docker/pull/24003.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/24003","number":24003,"state":"closed","locked":false,"title":"Fix duplicate layers in exported tar","user":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"body":"`docker save` stores the image layer's paths using random IDs to ensure compatibility with versions `<1.10`. This means that when same layer is exported multiple times as part of a single `docker save` operation, duplicate layers will be put in the tarball. This is especially bad when saving whole parent chains where almost all layers always match. This PR adds a cache based on layer diffID, and creates a symlink if same layer is used again instead of making a full copy.\r\n\r\nSigned-off-by: Tonis Tiigi <tonistiigi@gmail.com>","created_at":"2016-06-27T19:52:41Z","updated_at":"2016-07-01T00:07:59Z","closed_at":"2016-07-01T00:07:58Z","merged_at":"2016-07-01T00:07:58Z","merge_commit_sha":"98094460602130039a8ae576ca2b5a559d1bd274","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/docker/milestones/53","html_url":"https://github.com/docker/docker/milestones/1.12.0","labels_url":"https://api.github.com/repos/docker/docker/milestones/53/labels","id":1657301,"number":53,"title":"1.12.0","description":"feature/code freeze: June 14th, 2016","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":106,"closed_issues":454,"state":"open","created_at":"2016-03-21T13:47:53Z","updated_at":"2016-07-01T00:07:58Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/docker/docker/pulls/24003/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/24003/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/24003/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/41bf7de73be5d35f40aca9eb68064aa3e8bb9a54","head":{"label":"tonistiigi:fix-duplicate-layers","ref":"fix-duplicate-layers","sha":"41bf7de73be5d35f40aca9eb68064aa3e8bb9a54","user":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"repo":{"id":19074395,"name":"docker","full_name":"tonistiigi/docker","owner":{"login":"tonistiigi","id":585223,"avatar_url":"https://avatars.githubusercontent.com/u/585223?v=3","gravatar_id":"","url":"https://api.github.com/users/tonistiigi","html_url":"https://github.com/tonistiigi","followers_url":"https://api.github.com/users/tonistiigi/followers","following_url":"https://api.github.com/users/tonistiigi/following{/other_user}","gists_url":"https://api.github.com/users/tonistiigi/gists{/gist_id}","starred_url":"https://api.github.com/users/tonistiigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonistiigi/subscriptions","organizations_url":"https://api.github.com/users/tonistiigi/orgs","repos_url":"https://api.github.com/users/tonistiigi/repos","events_url":"https://api.github.com/users/tonistiigi/events{/privacy}","received_events_url":"https://api.github.com/users/tonistiigi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tonistiigi/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/tonistiigi/docker","forks_url":"https://api.github.com/repos/tonistiigi/docker/forks","keys_url":"https://api.github.com/repos/tonistiigi/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tonistiigi/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tonistiigi/docker/teams","hooks_url":"https://api.github.com/repos/tonistiigi/docker/hooks","issue_events_url":"https://api.github.com/repos/tonistiigi/docker/issues/events{/number}","events_url":"https://api.github.com/repos/tonistiigi/docker/events","assignees_url":"https://api.github.com/repos/tonistiigi/docker/assignees{/user}","branches_url":"https://api.github.com/repos/tonistiigi/docker/branches{/branch}","tags_url":"https://api.github.com/repos/tonistiigi/docker/tags","blobs_url":"https://api.github.com/repos/tonistiigi/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tonistiigi/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tonistiigi/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/tonistiigi/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tonistiigi/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/tonistiigi/docker/languages","stargazers_url":"https://api.github.com/repos/tonistiigi/docker/stargazers","contributors_url":"https://api.github.com/repos/tonistiigi/docker/contributors","subscribers_url":"https://api.github.com/repos/tonistiigi/docker/subscribers","subscription_url":"https://api.github.com/repos/tonistiigi/docker/subscription","commits_url":"https://api.github.com/repos/tonistiigi/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/tonistiigi/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/tonistiigi/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/tonistiigi/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/tonistiigi/docker/contents/{+path}","compare_url":"https://api.github.com/repos/tonistiigi/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tonistiigi/docker/merges","archive_url":"https://api.github.com/repos/tonistiigi/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tonistiigi/docker/downloads","issues_url":"https://api.github.com/repos/tonistiigi/docker/issues{/number}","pulls_url":"https://api.github.com/repos/tonistiigi/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/tonistiigi/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/tonistiigi/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tonistiigi/docker/labels{/name}","releases_url":"https://api.github.com/repos/tonistiigi/docker/releases{/id}","deployments_url":"https://api.github.com/repos/tonistiigi/docker/deployments","created_at":"2014-04-23T15:15:03Z","updated_at":"2014-07-24T21:22:45Z","pushed_at":"2016-06-30T23:16:10Z","git_url":"git://github.com/tonistiigi/docker.git","ssh_url":"git@github.com:tonistiigi/docker.git","clone_url":"https://github.com/tonistiigi/docker.git","svn_url":"https://github.com/tonistiigi/docker","homepage":"http://www.docker.io","size":97383,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"docker:master","ref":"master","sha":"e904f58e199836fa43ee1c6736e689ef58e4fe10","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}","deployments_url":"https://api.github.com/repos/docker/docker/deployments","created_at":"2013-01-18T18:10:57Z","updated_at":"2016-06-30T23:22:49Z","pushed_at":"2016-07-01T00:07:59Z","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":203340,"stargazers_count":32567,"watchers_count":32567,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9403,"mirror_url":null,"open_issues_count":1898,"forks":9403,"open_issues":1898,"watchers":32567,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/24003"},"html":{"href":"https://github.com/docker/docker/pull/24003"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/24003"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/24003/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/24003/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/24003/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/41bf7de73be5d35f40aca9eb68064aa3e8bb9a54"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"LK4D4","id":101445,"avatar_url":"https://avatars.githubusercontent.com/u/101445?v=3","gravatar_id":"","url":"https://api.github.com/users/LK4D4","html_url":"https://github.com/LK4D4","followers_url":"https://api.github.com/users/LK4D4/followers","following_url":"https://api.github.com/users/LK4D4/following{/other_user}","gists_url":"https://api.github.com/users/LK4D4/gists{/gist_id}","starred_url":"https://api.github.com/users/LK4D4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LK4D4/subscriptions","organizations_url":"https://api.github.com/users/LK4D4/orgs","repos_url":"https://api.github.com/users/LK4D4/repos","events_url":"https://api.github.com/users/LK4D4/events{/privacy}","received_events_url":"https://api.github.com/users/LK4D4/received_events","type":"User","site_admin":false},"comments":4,"review_comments":2,"commits":1,"additions":31,"deletions":18,"changed_files":1}}
{"actor":{"display_login":"LK4D4"}}