{"action":"closed","issue":{"url":"https://api.github.com/repos/docker/docker/issues/21563","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/21563/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/21563/comments","events_url":"https://api.github.com/repos/docker/docker/issues/21563/events","html_url":"https://github.com/docker/docker/issues/21563","id":143900072,"number":21563,"title":"Docker re-pushing layers that already exist","user":{"login":"ahawkins","id":48928,"avatar_url":"https://avatars.githubusercontent.com/u/48928?v=3","gravatar_id":"","url":"https://api.github.com/users/ahawkins","html_url":"https://github.com/ahawkins","followers_url":"https://api.github.com/users/ahawkins/followers","following_url":"https://api.github.com/users/ahawkins/following{/other_user}","gists_url":"https://api.github.com/users/ahawkins/gists{/gist_id}","starred_url":"https://api.github.com/users/ahawkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahawkins/subscriptions","organizations_url":"https://api.github.com/users/ahawkins/orgs","repos_url":"https://api.github.com/users/ahawkins/repos","events_url":"https://api.github.com/users/ahawkins/events{/privacy}","received_events_url":"https://api.github.com/users/ahawkins/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/distribution","name":"group/distribution","color":"F6FBFF"},{"url":"https://api.github.com/repos/docker/docker/labels/status/more-info-needed","name":"status/more-info-needed","color":"C6A49A"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-28T05:56:28Z","updated_at":"2016-04-19T14:45:43Z","closed_at":"2016-04-19T14:45:43Z","body":"<!--\r\nIf you are reporting a new issue, make sure that we do not have any duplicates\r\nalready open. You can ensure this by searching the issue list for this\r\nrepository. If there is a duplicate, please close your issue and add a comment\r\nto the existing issue instead.\r\n\r\nIf you suspect your issue is a bug, please edit your issue description to\r\ninclude the BUG REPORT INFORMATION shown below. If you fail to provide this\r\ninformation within 7 days, we cannot debug your issue and will close it. We\r\nwill, however, reopen it if you later provide the information.\r\n\r\nFor more information about reporting issues, see\r\nhttps://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues\r\n\r\n---------------------------------------------------\r\nBUG REPORT INFORMATION\r\n---------------------------------------------------\r\nUse the commands below to provide key information from your environment:\r\nYou do NOT have to include this information if this is a FEATURE REQUEST\r\n-->\r\n\r\n**Output of `docker version`:**\r\n\r\n```\r\nDocker version 1.10.3, build 20f81dd\r\n```\r\n\r\n**Output of `docker info`:**\r\n\r\n```\r\nContainers: 2\r\n Running: 0\r\n Paused: 0\r\n Stopped: 2\r\nImages: 18\r\nServer Version: 1.10.3\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 36\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nLogging Driver: json-file\r\nPlugins: \r\n Volume: local\r\n Network: bridge null host\r\nKernel Version: 4.1.19-boot2docker\r\nOperating System: Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 1\r\nTotal Memory: 996.1 MiB\r\nName: nomad\r\nID: X2GW:QDJA:C5TA:JVIA:GFGF:7JQ3:TAD7:AUDZ:4MXB:3AGQ:7CRD:BBTF\r\nDebug mode (server): true\r\n File Descriptors: 24\r\n Goroutines: 74\r\n System Time: 2016-03-28T05:48:48.120102054Z\r\n EventsListeners: 0\r\n Init SHA1: \r\n Init Path: /usr/local/bin/docker\r\n Docker Root Dir: /mnt/sda1/var/lib/docker\r\nUsername: ahawkins\r\nRegistry: https://index.docker.io/v1/\r\nLabels:\r\n provider=virtualbox\r\n```\r\n\r\n**Steps to reproduce the issue:**\r\n1. push an image\r\n2. push the same image again\r\n\r\nSee the push logs below.\r\n\r\n```\r\n--- Pushing docker image\r\ndocker tag saltside/kpi-collector saltside/kpi-collector:dfc2764\r\ndocker push saltside/kpi-collector:dfc2764\r\nThe push refers to a repository [docker.io/saltside/kpi-collector]\r\n9bacd71114e5: Pushed\r\n3794c15d11df: Pushed\r\nb8bcfc8384a2: Pushed\r\nb71bdca960dc: Pushed\r\n697744b2f42a: Pushed\r\n5f70bf18a086: Pushed\r\n1e31ca6be1c6: Pushed\r\n2926d01a2ccc: Pushed\r\n7a2764f609e7: Pushed\r\nf5b219c22487: Pushed\r\n35a0078b4d2e: Pushed\r\nfb49515ec5d8: Pushed\r\nbd750002938c: Pushed\r\n917c0fc99b35: Pushed\r\ndfc2764: digest: sha256:5c7b3e780e123a3e920eb832cac5c804ee5639bb85c650fe7a7296ae44cf01f4 size: 17481\r\n--- Pushing docker image\r\ndocker tag saltside/kpi-collector saltside/kpi-collector:dfc2764\r\ndocker push saltside/kpi-collector:dfc2764\r\nThe push refers to a repository [docker.io/saltside/kpi-collector]\r\n9bacd71114e5: Layer already exists\r\n3794c15d11df: Layer already exists\r\nb8bcfc8384a2: Layer already exists\r\nb71bdca960dc: Layer already exists\r\n697744b2f42a: Pushing 2.048 kB\r\n5f70bf18a086: Layer already exists\r\n697744b2f42a: Pushed\r\n2926d01a2ccc: Pushing 1.385 MB\r\n7a2764f609e7: Pushing 2.201 MB/117.6 MB\r\n1e31ca6be1c6: Pushed\r\n2926d01a2ccc: Pushed\r\n7a2764f609e7: Pushed\r\nf5b219c22487: Pushed\r\n35a0078b4d2e: Pushed\r\nfb49515ec5d8: Pushed\r\nbd750002938c: Pushed\r\n917c0fc99b35: Pushed\r\ndfc2764: digest: sha256:5c7b3e780e123a3e920eb832cac5c804ee5639bb85c650fe7a7296ae44cf01f4 size: 17481\r\n```\r\n\r\nAs you can see the layer ID are the same and the final SHA is the same as well. \r\n\r\n**Describe the results you received:**\r\n\r\nDocker is pushing layers when it does not need to. \r\n\r\n**Describe the results you expected:**\r\n\r\nTo not push layers that already exist in the remote registry\r\n\r\n**Additional information you deem important (e.g. issue happens only occasionally):**\r\n\r\nThis seeminly started last week at one point. Was there a change to the registry in production? I've since deleted the repo in our company's docker hub account and tried with a new docker machine (given I'm on OSX). This same behavior is happening on other machines with other docker versions."}}