No delete option for repo or tag ??
-
@BrutalBirdie thank you! Nice and easy solution. I like those
Follow-up : I also don't see a way to set a repo to be private.
Is it correct understanding that it's automatically private because it's in my private registry ?
i.e. someone would need to log in to the registry to see images and download them -
@timconsidine said in No delete option for repo or tag ??:
Is it correct understanding that it's automatically private because it's in my private registry ?
i.e. someone would need to log in to the registry to see images and download themExactly.
If you choose the cloudron user management, then a login is needed to access the whole registry.
No sure if there is an option for per-user repositorys (That would be a separate topic tho) -
@BrutalBirdie that's fine.
Yes, I'm using Cloudron user management and restricting access with that.
I don't need per-user repos.
If I did, I would probably set up a separate instance of the app and restrict it by user.Cool, thank you. Now I will de-docker-hub myself !
-
@BrutalBirdie said in No delete option for repo or tag ??:
Maybe we could add that to the docs.
Created a PR for that information.
https://git.cloudron.io/cloudron/docs/-/merge_requests/39
@staff -
@timconsidine said in No delete option for repo or tag ??:
But I cannot see an option to delete it in the UI.
From https://github.com/Joxit/docker-registry-ui#faq ,
I deleted images through the UI, but they are still present on the server. How can I delete them?
When you delete an image with the UI, only the reference is deleted and not the content.
To remove dangling images, you need to run the garbage collector of the registry with the command registry garbage-collect config.yml or docker exec registry registry garbage-collect config.yml. (see #77 #147)Is this what you hit? Or do you not even see the delete option in the UI?
-
@BrutalBirdie mm, apparently, it's disabled by default: https://github.com/Joxit/docker-registry-ui#available-options .
DELETE_IMAGES: Set if we can delete images from the UI. (default: false)
Not seeing any reason to keep it disabled.
-
@girish Hmm I did not even consider looking there, since I did not look into the app which ui is used
Since there are more option that could be used via variables maybe include an
.env
file which gets dynamically loaded on the start.
Similar to what I did with greenlight. -
@BrutalBirdie said in No delete option for repo or tag ??:
Since there are more option that could be used via variables maybe include an .env file which gets dynamically loaded on the start.
Agreed! Just fixing up the package now.
-
-