{"action":"created","issue":{"url":"https://api.github.com/repos/docker/distribution/issues/2302","repository_url":"https://api.github.com/repos/docker/distribution","labels_url":"https://api.github.com/repos/docker/distribution/issues/2302/labels{/name}","comments_url":"https://api.github.com/repos/docker/distribution/issues/2302/comments","events_url":"https://api.github.com/repos/docker/distribution/issues/2302/events","html_url":"https://github.com/docker/distribution/pull/2302","id":233810358,"node_id":"MDExOlB1bGxSZXF1ZXN0MTI0MTMxMDYx","number":2302,"title":"add possibility to clean untagged manifests","user":{"login":"zetaab","id":22482503,"node_id":"MDQ6VXNlcjIyNDgyNTAz","avatar_url":"https://avatars2.githubusercontent.com/u/22482503?v=4","gravatar_id":"","url":"https://api.github.com/users/zetaab","html_url":"https://github.com/zetaab","followers_url":"https://api.github.com/users/zetaab/followers","following_url":"https://api.github.com/users/zetaab/following{/other_user}","gists_url":"https://api.github.com/users/zetaab/gists{/gist_id}","starred_url":"https://api.github.com/users/zetaab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zetaab/subscriptions","organizations_url":"https://api.github.com/users/zetaab/orgs","repos_url":"https://api.github.com/users/zetaab/repos","events_url":"https://api.github.com/users/zetaab/events{/privacy}","received_events_url":"https://api.github.com/users/zetaab/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/docker/distribution/milestones/18","html_url":"https://github.com/docker/distribution/milestone/18","labels_url":"https://api.github.com/repos/docker/distribution/milestones/18/labels","id":2125936,"node_id":"MDk6TWlsZXN0b25lMjEyNTkzNg==","number":18,"title":"Registry/2.7.0","description":"","creator":{"login":"dmcgowan","id":169601,"node_id":"MDQ6VXNlcjE2OTYwMQ==","avatar_url":"https://avatars2.githubusercontent.com/u/169601?v=4","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},"open_issues":21,"closed_issues":44,"state":"open","created_at":"2016-11-09T23:24:51Z","updated_at":"2018-09-27T21:41:05Z","due_on":"2018-11-01T07:00:00Z","closed_at":null},"comments":45,"created_at":"2017-06-06T08:04:29Z","updated_at":"2018-10-10T16:40:22Z","closed_at":"2018-01-05T23:27:53Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/docker/distribution/pulls/2302","html_url":"https://github.com/docker/distribution/pull/2302","diff_url":"https://github.com/docker/distribution/pull/2302.diff","patch_url":"https://github.com/docker/distribution/pull/2302.patch"},"body":"fixes issue https://github.com/docker/distribution/issues/2301\r\n\r\n\r\n```\r\n% docker tag alpine:3.4 localhost:5000/alpine:latest\r\n% docker push localhost:5000/alpine:latest\r\nThe push refers to a repository [localhost:5000/alpine]\r\n8539d1fe4fab: Pushed\r\nlatest: digest: sha256:36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9 size: 528\r\n% docker tag alpine:latest localhost:5000/alpine:latest\r\n% docker push localhost:5000/alpine:latest\r\nThe push refers to a repository [localhost:5000/alpine]\r\n3fb66f713c9f: Pushed\r\nlatest: digest: sha256:0b94d1d1b5eb130dd0253374552445b39470653fb1a1ec2d81490948876e462c size: 528\r\n```\r\n\r\nnow the situation is that there is two manifests, and only one has active tag.\r\n\r\nNew flag added 'm'\r\n\r\n```\r\n% docker exec f519ebf4cc51 registry garbage-collect\r\nconfiguration error: configuration path unspecified\r\n\r\nUsage:\r\n  registry garbage-collect <config> [flags]\r\nFlags:\r\n  -m, --delete-manifests=false: delete manifests which does not have tag attached\r\n  -d, --dry-run=false: do everything except remove the blobs\r\n  -h, --help=false: help for garbage-collect\r\n```\r\n\r\n\r\nold behaviour:\r\n\r\n```\r\n% docker exec f519ebf4cc51 registry garbage-collect /etc/docker/registry/config.yml\r\nalpine\r\nalpine: marking manifest sha256:0b94d1d1b5eb130dd0253374552445b39470653fb1a1ec2d81490948876e462c\r\nalpine: marking blob sha256:a41a7446062d197dd4b21b38122dcc7b2399deb0750c4110925a7dd37c80f118\r\nalpine: marking blob sha256:2aecc7e1714b6fad58d13aedb0639011b37b86f743ba7b6a52d82bd03014b78e\r\nalpine: marking manifest sha256:36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9\r\nalpine: marking blob sha256:6008ce38ddc131d5fc1e35b4a06b78fa1388ca94fd8efc1246fcbc44b45b6b74\r\nalpine: marking blob sha256:486a8e636d6250a74d15cdb3582f4dd198271a80118f5a2f59de3d9cd8433611\r\n\r\n6 blobs marked, 0 blobs and 0 manifests eligible for deletion\r\n```\r\n\r\ndisk in this point:\r\n\r\n```\r\n registry % du -h -d 1\r\n4.2M\t./v2\r\n4.2M\t.\r\n```\r\n\r\nnew feature:\r\n\r\n```\r\n% docker exec f519ebf4cc51 registry garbage-collect -m /etc/docker/registry/config.yml\r\nalpine\r\nalpine: marking manifest sha256:0b94d1d1b5eb130dd0253374552445b39470653fb1a1ec2d81490948876e462c\r\nalpine: marking blob sha256:a41a7446062d197dd4b21b38122dcc7b2399deb0750c4110925a7dd37c80f118\r\nalpine: marking blob sha256:2aecc7e1714b6fad58d13aedb0639011b37b86f743ba7b6a52d82bd03014b78e\r\nmanifest has no tags alpine@sha256:36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9\r\n\r\n3 blobs marked, 3 blobs and 1 manifests eligible for deletion\r\nmanifest eligible for deletion: sha256:36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9\r\ntime=\"2017-06-06T07:56:30.226753065Z\" level=info msg=\"Deleting manifest: /docker/registry/v2/repositories/alpine/_manifests/revisions/sha256/36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9\" go.version=go1.8.3 instance.id=a36f92ea-3c7a-420b-8fbb-4392722dc61c\r\nblob eligible for deletion: sha256:36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9\r\ntime=\"2017-06-06T07:56:30.236785668Z\" level=info msg=\"Deleting blob: /docker/registry/v2/blobs/sha256/36/36fbf18a36d0410de46201a76b7cfb1d69d44a8f407d6a0814517247b896f8e9\" go.version=go1.8.3 instance.id=a36f92ea-3c7a-420b-8fbb-4392722dc61c\r\nblob eligible for deletion: sha256:486a8e636d6250a74d15cdb3582f4dd198271a80118f5a2f59de3d9cd8433611\r\ntime=\"2017-06-06T07:56:30.248873403Z\" level=info msg=\"Deleting blob: /docker/registry/v2/blobs/sha256/48/486a8e636d6250a74d15cdb3582f4dd198271a80118f5a2f59de3d9cd8433611\" go.version=go1.8.3 instance.id=a36f92ea-3c7a-420b-8fbb-4392722dc61c\r\nblob eligible for deletion: sha256:6008ce38ddc131d5fc1e35b4a06b78fa1388ca94fd8efc1246fcbc44b45b6b74\r\ntime=\"2017-06-06T07:56:30.25450166Z\" level=info msg=\"Deleting blob: /docker/registry/v2/blobs/sha256/60/6008ce38ddc131d5fc1e35b4a06b78fa1388ca94fd8efc1246fcbc44b45b6b74\" go.version=go1.8.3 instance.id=a36f92ea-3c7a-420b-8fbb-4392722dc61c\r\n```\r\n\r\ndisk after this:\r\n\r\n```\r\n registry % du -h -d 1\r\n1.9M\t./v2\r\n1.9M\t.\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/distribution/issues/comments/428643761","html_url":"https://github.com/docker/distribution/pull/2302#issuecomment-428643761","issue_url":"https://api.github.com/repos/docker/distribution/issues/2302","id":428643761,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODY0Mzc2MQ==","user":{"login":"manishtomar","id":758529,"node_id":"MDQ6VXNlcjc1ODUyOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/758529?v=4","gravatar_id":"","url":"https://api.github.com/users/manishtomar","html_url":"https://github.com/manishtomar","followers_url":"https://api.github.com/users/manishtomar/followers","following_url":"https://api.github.com/users/manishtomar/following{/other_user}","gists_url":"https://api.github.com/users/manishtomar/gists{/gist_id}","starred_url":"https://api.github.com/users/manishtomar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manishtomar/subscriptions","organizations_url":"https://api.github.com/users/manishtomar/orgs","repos_url":"https://api.github.com/users/manishtomar/repos","events_url":"https://api.github.com/users/manishtomar/events{/privacy}","received_events_url":"https://api.github.com/users/manishtomar/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T16:40:22Z","updated_at":"2018-10-10T16:40:22Z","author_association":"COLLABORATOR","body":"@dahuether @boianmihailov New pre-release https://github.com/docker/distribution/releases/tag/v2.7.0-rc.0 is out. Please test and let us know if it works."}}
{"actor":{"display_login":"manishtomar"}}