{"action":"created","issue":{"url":"https://api.github.com/repos/SUSE/Portus/issues/2002","repository_url":"https://api.github.com/repos/SUSE/Portus","labels_url":"https://api.github.com/repos/SUSE/Portus/issues/2002/labels{/name}","comments_url":"https://api.github.com/repos/SUSE/Portus/issues/2002/comments","events_url":"https://api.github.com/repos/SUSE/Portus/issues/2002/events","html_url":"https://github.com/SUSE/Portus/issues/2002","id":369204091,"node_id":"MDU6SXNzdWUzNjkyMDQwOTE=","number":2002,"title":"[Question] Test Registry 2.7.0 w/possibility to clean untagged manifests","user":{"login":"branzo","id":1303954,"node_id":"MDQ6VXNlcjEzMDM5NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1303954?v=4","gravatar_id":"","url":"https://api.github.com/users/branzo","html_url":"https://github.com/branzo","followers_url":"https://api.github.com/users/branzo/followers","following_url":"https://api.github.com/users/branzo/following{/other_user}","gists_url":"https://api.github.com/users/branzo/gists{/gist_id}","starred_url":"https://api.github.com/users/branzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/branzo/subscriptions","organizations_url":"https://api.github.com/users/branzo/orgs","repos_url":"https://api.github.com/users/branzo/repos","events_url":"https://api.github.com/users/branzo/events{/privacy}","received_events_url":"https://api.github.com/users/branzo/received_events","type":"User","site_admin":false},"labels":[{"id":199038781,"node_id":"MDU6TGFiZWwxOTkwMzg3ODE=","url":"https://api.github.com/repos/SUSE/Portus/labels/bug","name":"bug","color":"fc2929","default":true},{"id":199038783,"node_id":"MDU6TGFiZWwxOTkwMzg3ODM=","url":"https://api.github.com/repos/SUSE/Portus/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-11T16:29:44Z","updated_at":"2018-12-06T07:09:46Z","closed_at":null,"author_association":"NONE","body":"Hello again, \r\n\r\nyesterday i was notified about this an update on this PR: docker/distribution/pull/2302. \r\n\r\nLet me go a bit off-topic here to better explain everything...\r\n\r\nIt seems that a test version of the registry (2.7.0rc0 - https://github.com/docker/distribution/releases/tag/v2.7.0-rc.0 - has been released for users to test the possibility to clean untagged manifests). \r\n\r\nAs far as i have been able to test, deleting orphan manifests works:\r\n \r\n1.  upload an image with a tag\r\n2.  upload another image over the previous (same tag?)\r\n3.  run registry's garbage-collect with -m switch as stated [here](https://github.com/docker/distribution/pull/2302#issuecomment-428930642).\r\n\r\nIf you want to try it, just spin up a portus instance with the new registry version (image has to be hand built and a few quirks must be adopted since it is an RC):\r\n\r\n```\r\n  registry:\r\n    image: registry:2.7.0-rc0\r\n    entrypoint: [\"/go/src/github.com/docker/distribution/bin/registry\"]\r\n    command: [\"serve\",\"/etc/docker/registry/config.yml\"]\r\n```\r\n\r\nUnfortunately, if one wants to delete tags from the Portus interface (or using other tools, such as reg) you will get a 401 (if you need more logs i would be able to provide one). Going a bit deeper in the logs i just \r\n```\r\nportus_1      | [jwt_token] [claim] {:iss=>\"my-test.reg.tld\", :sub=>\"portus\", :aud=>\"my-test.reg.tld\", :iat=>1539273532, :nbf=>1539273527, :exp=>1539273832, :jti=>\"kzMo2VomxPhFLQyDWUkVDnGSxqAvknik71BrhEyE5w\", :access=>[{:type=>\"registry\", :name=>\"catalog\", :actions=>[\"*\"]}]}\r\n```\r\n\r\nbut according to [this](https://github.com/docker/distribution/commit/ccb839e0e30c3b6992fb4084dfd6550d0ddd4d1a), action for DELETE has been changed from '*' to 'delete'. Did i got this right ?\r\n\r\nWhat do you think, @mssola ?\r\n"},"comment":{"url":"https://api.github.com/repos/SUSE/Portus/issues/comments/444770882","html_url":"https://github.com/SUSE/Portus/issues/2002#issuecomment-444770882","issue_url":"https://api.github.com/repos/SUSE/Portus/issues/2002","id":444770882,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDc3MDg4Mg==","user":{"login":"wwyhy","id":83105,"node_id":"MDQ6VXNlcjgzMTA1","avatar_url":"https://avatars1.githubusercontent.com/u/83105?v=4","gravatar_id":"","url":"https://api.github.com/users/wwyhy","html_url":"https://github.com/wwyhy","followers_url":"https://api.github.com/users/wwyhy/followers","following_url":"https://api.github.com/users/wwyhy/following{/other_user}","gists_url":"https://api.github.com/users/wwyhy/gists{/gist_id}","starred_url":"https://api.github.com/users/wwyhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwyhy/subscriptions","organizations_url":"https://api.github.com/users/wwyhy/orgs","repos_url":"https://api.github.com/users/wwyhy/repos","events_url":"https://api.github.com/users/wwyhy/events{/privacy}","received_events_url":"https://api.github.com/users/wwyhy/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T07:09:46Z","updated_at":"2018-12-06T07:09:46Z","author_association":"NONE","body":"Ok, thank you. \r\n\r\nHope the -m flag can GC the unused manifest :). "}}
{"actor":{"display_login":"wwyhy"}}