{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23549","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23549/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23549/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23549/events","html_url":"https://github.com/docker/docker/pull/23549","id":160311685,"number":23549,"title":"Do not show empty tags for digest references in output","user":{"login":"dmcgowan","id":169601,"avatar_url":"https://avatars.githubusercontent.com/u/169601?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcgowan","html_url":"https://github.com/dmcgowan","followers_url":"https://api.github.com/users/dmcgowan/followers","following_url":"https://api.github.com/users/dmcgowan/following{/other_user}","gists_url":"https://api.github.com/users/dmcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcgowan/subscriptions","organizations_url":"https://api.github.com/users/dmcgowan/orgs","repos_url":"https://api.github.com/users/dmcgowan/repos","events_url":"https://api.github.com/users/dmcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/dmcgowan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/1-design-review","name":"status/1-design-review","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-15T00:01:55Z","updated_at":"2016-06-15T01:08:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/23549","html_url":"https://github.com/docker/docker/pull/23549","diff_url":"https://github.com/docker/docker/pull/23549.diff","patch_url":"https://github.com/docker/docker/pull/23549.patch"},"body":"When a repository has a tag and digests, show tag for each digest value. Rows will not be duplicated for the same image name which has both a tag and a digest.\r\n\r\nPing @aaronlehmann @endophage @dnephin \r\n\r\n```\r\n$ DOCKER_CONTENT_TRUST=1 docker pull ubuntu                           \r\nUsing default tag: latest\r\nPull (1 of 1): ubuntu:latest@sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4\r\nsha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4: Pulling from library/ubuntu\r\n5ba4f30e5bea: Pull complete \r\n9d7d19c9dc56: Pull complete \r\nac6ad7efd0f9: Pull complete \r\ne7491a747824: Pull complete \r\na3ed95caeb02: Pull complete \r\nDigest: sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4\r\nStatus: Downloaded newer image for ubuntu@sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4\r\nTagging ubuntu@sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4 as ubuntu:latest\r\n$ docker images\r\nREPOSITORY          TAG                          IMAGE ID            CREATED              SIZE\r\nubuntu              latest                       2fa927b5cdd3        2 weeks ago          122 MB\r\n$ docker images --digests\r\nREPOSITORY          TAG                          DIGEST                                                                    IMAGE ID            CREATED              SIZE\r\nubuntu              latest                       sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4   2fa927b5cdd3        2 weeks ago          122 MB\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/226061824","html_url":"https://github.com/docker/docker/pull/23549#issuecomment-226061824","issue_url":"https://api.github.com/repos/docker/docker/issues/23549","id":226061824,"user":{"login":"dmcgowan","id":169601,"avatar_url":"https://avatars.githubusercontent.com/u/169601?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcgowan","html_url":"https://github.com/dmcgowan","followers_url":"https://api.github.com/users/dmcgowan/followers","following_url":"https://api.github.com/users/dmcgowan/following{/other_user}","gists_url":"https://api.github.com/users/dmcgowan/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcgowan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcgowan/subscriptions","organizations_url":"https://api.github.com/users/dmcgowan/orgs","repos_url":"https://api.github.com/users/dmcgowan/repos","events_url":"https://api.github.com/users/dmcgowan/events{/privacy}","received_events_url":"https://api.github.com/users/dmcgowan/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T01:08:31Z","updated_at":"2016-06-15T01:08:31Z","body":"Illustrated different pulling image with 2 different tags. With schema1 manifests 2 different manifests will be created causing the case of multiple digests showing up. Since manifest tags are not enforced, the corresponding images may be pulled by either manifest hash. However the common case of issuing `docker images` without the digest flags will still show the shorter list.\r\n\r\n```\r\n$ docker images          \r\nREPOSITORY          TAG                          IMAGE ID            CREATED             SIZE\r\nalpine              3.4                          f70c828098f5        12 days ago         4.799 MB\r\nubuntu              16.04                        2fa927b5cdd3        2 weeks ago         122 MB\r\nubuntu              latest                       2fa927b5cdd3        2 weeks ago         122 MB\r\nubuntu              15.10                        0b4516a442e7        2 weeks ago         136.8 MB\r\n$ docker images --digests\r\nREPOSITORY          TAG                          DIGEST                                                                    IMAGE ID            CREATED             SIZE\r\nalpine              3.4                          sha256:7d7d68e60bec044b1821208884a2a4c9de64dfd5807f04cd32ffa5f5232d7848   f70c828098f5        12 days ago         4.799 MB\r\nubuntu              16.04                        sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4   2fa927b5cdd3        2 weeks ago         122 MB\r\nubuntu              16.04                        sha256:f5edf3b741a08b573eca6bf25257847613540538a17b86e2b76e14724a0be68a   2fa927b5cdd3        2 weeks ago         122 MB\r\nubuntu              latest                       sha256:46fb5d001b88ad904c5c732b086b596b92cfb4a4840a3abd0e35dbb6870585e4   2fa927b5cdd3        2 weeks ago         122 MB\r\nubuntu              latest                       sha256:f5edf3b741a08b573eca6bf25257847613540538a17b86e2b76e14724a0be68a   2fa927b5cdd3        2 weeks ago         122 MB\r\nubuntu              15.10                        sha256:d010a2154cfbead5674bcadd358003f05a5935337b176cb032ec9e6a36369e70   0b4516a442e7        2 weeks ago         136.8 MB\r\n```"}}
{"actor":{"display_login":"dmcgowan"}}