{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/1811","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/1811/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/1811/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/1811/events","html_url":"https://github.com/docker/distribution/issues/1811","id":162972434,"number":1811,"title":"Should images with different tags have different digests?","user":{"login":"sergeyfd","id":734095,"avatar_url":"https://avatars.githubusercontent.com/u/734095?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyfd","html_url":"https://github.com/sergeyfd","followers_url":"https://api.github.com/users/sergeyfd/followers","following_url":"https://api.github.com/users/sergeyfd/following{/other_user}","gists_url":"https://api.github.com/users/sergeyfd/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyfd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyfd/subscriptions","organizations_url":"https://api.github.com/users/sergeyfd/orgs","repos_url":"https://api.github.com/users/sergeyfd/repos","events_url":"https://api.github.com/users/sergeyfd/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyfd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-29T16:39:00Z","updated_at":"2016-06-29T16:39:00Z","closed_at":null,"body":"Hello,\r\n\r\nHow digests for manifests are generated? I tagged the same image with three different tags and pushed them into 2.4.1 registry. Two of then have identical digests while third one is different. Is it supposed behavior? I know that in the older versions of registry digests were different for all tags, but I am not sure at what version this behavior changed.\r\n\r\n```\r\n-bash-4.2$ curl http://localhost:5000/v2/dubros/test/tags/list\r\n{\"name\":\"dubros/test\",\"tags\":[\"latest\",\"t1\",\"t2\"]}\r\n-bash-4.2$ curl --header \"Accept: application/vnd.docker.distribution.manifest.v2+json\" -I -X HEAD localhost:5000/v2/dubros/test/manifests/latest 2>/dev/null | grep Docker-Content-Digest | awk '{print $2}'\r\nsha256:0a88770e824e5b7bcd15eec6da32f22e6d4e84c1fef9a5cdc5bbafd8917f9c31\r\n-bash-4.2$ curl --header \"Accept: application/vnd.docker.distribution.manifest.v2+json\" -I -X HEAD localhost:5000/v2/dubros/test/manifests/t1 2>/dev/null | grep Docker-Content-Digest | awk '{print $2}'\r\nsha256:2e1a1a37978fae1d0fa6aff2aada9a512d5c811eea9d5a174b8610744db6b103\r\n-bash-4.2$ curl --header \"Accept: application/vnd.docker.distribution.manifest.v2+json\" -I -X HEAD localhost:5000/v2/dubros/test/manifests/t2 2>/dev/null | grep Docker-Content-Digest | awk '{print $2}'\r\nsha256:2e1a1a37978fae1d0fa6aff2aada9a512d5c811eea9d5a174b8610744db6b103\r\n\r\n\r\n-bash-4.2$ docker images\r\nREPOSITORY                                                    TAG                 IMAGE ID            CREATED             SIZE\r\nlocalhost:5000/dubros/test                                    latest              1feba5a478fe        9 months ago        204.9 MB\r\nlocalhost:5000/dubros/test                                    t1                  1feba5a478fe        9 months ago        204.9 MB\r\nlocalhost:5000/dubros/test                                    t2                  1feba5a478fe        9 months ago        204.9 MB\r\nqa.registry.docker.site.gs.com/gs_cloud/httpd                 latest              1feba5a478fe        9 months ago        204.9 MB\r\n\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"sergeyfd"}}