{"action":"created","issue":{"url":"https://api.github.com/repos/docker/hub-feedback/issues/1759","repository_url":"https://api.github.com/repos/docker/hub-feedback","labels_url":"https://api.github.com/repos/docker/hub-feedback/issues/1759/labels{/name}","comments_url":"https://api.github.com/repos/docker/hub-feedback/issues/1759/comments","events_url":"https://api.github.com/repos/docker/hub-feedback/issues/1759/events","html_url":"https://github.com/docker/hub-feedback/issues/1759","id":416373805,"node_id":"MDU6SXNzdWU0MTYzNzM4MDU=","number":1759,"title":"delete manifests via registry api","user":{"login":"cblomart","id":3999494,"node_id":"MDQ6VXNlcjM5OTk0OTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/3999494?v=4","gravatar_id":"","url":"https://api.github.com/users/cblomart","html_url":"https://github.com/cblomart","followers_url":"https://api.github.com/users/cblomart/followers","following_url":"https://api.github.com/users/cblomart/following{/other_user}","gists_url":"https://api.github.com/users/cblomart/gists{/gist_id}","starred_url":"https://api.github.com/users/cblomart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cblomart/subscriptions","organizations_url":"https://api.github.com/users/cblomart/orgs","repos_url":"https://api.github.com/users/cblomart/repos","events_url":"https://api.github.com/users/cblomart/events{/privacy}","received_events_url":"https://api.github.com/users/cblomart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-03-02T08:22:43Z","updated_at":"2019-03-07T00:48:18Z","closed_at":"2019-03-06T23:21:55Z","author_association":"NONE","body":"## Problem description\r\n\r\nI am building a opensource project with CI/CD.\r\nEvery commit is builded and pushed to docker hub with the short commit number as their tag.\r\n\r\nI wanted to find a way to cleanup old commit builds but keep a few (i.e. last 15 days and at least 3). \r\n\r\ni.e. \r\na little tool that would take a few argument:\r\n- repository to run against\r\n- regex match for tags\r\n- days to keep\r\n- minimum number of tags to keep\r\n\r\nI looked at registry api against ```registry-1.docker.io```.  And i am able to list tags with details without any issues.\r\nDelete manifests is apparently supported there.\r\ndoing a delete on ```https://registry-1.docker.io/v2/{repo}/maniftests/{digest}``` responds with:\r\n```json\r\n{\"errors\":[{\"code\":\"UNSUPPORTED\",\"message\":\"The operation is unsupported.\"}]}\r\n```\r\nFrom my reading of it, it seems that delete has not been disabled on the backend registry.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/hub-feedback/issues/comments/470337167","html_url":"https://github.com/docker/hub-feedback/issues/1759#issuecomment-470337167","issue_url":"https://api.github.com/repos/docker/hub-feedback/issues/1759","id":470337167,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MDMzNzE2Nw==","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":"2019-03-07T00:48:18Z","updated_at":"2019-03-07T00:48:18Z","author_association":"COLLABORATOR","body":"Disabling delete was probably done before me but I am guessing it is because that API was getting implemented at that time. Blocking deletes is also safer as user could mistakenly called it. Deleting from Hub allows us to fine tune the delete. \r\n\r\nNote that although you are free to call registry APIs directly we do not guarantee that every registry API will be implemented. Our primary focus is to ensure it works seamlessly with Docker CLI."}}
{"actor":{"display_login":"manishtomar"}}