mortensteenrasmussen / docker-registry-manifest-cleanup

Cleans up docker registry by removing untagged manifests from the registry
Apache License 2.0
146 stars 33 forks source link

Add registry authentication #10

Closed alexpilotti closed 5 years ago

alexpilotti commented 6 years ago

Uses https://github.com/jessfraz/reg to delete the manifests instead of curl since it already supports authentication, including Docker registry v2 token authentication.

The optional REGISTRY_USERNAME and REGISTRY_PASSWORD environment variables have been added.

CURL_INSECURE is still accepted for backwards compatibility.

The reg binary needs to be in the PATH.

mortensteenrasmussen commented 6 years ago

Hi,

I'm sincerely sorry for the very long wait, things have been a bit hectic on this end.

Thanks a lot for your contribution.

Did you test the image from this PR? I'm trying to decide which amount of testing I should do before merging this :)

mortensteenrasmussen commented 5 years ago

I changed the implementation and added auth support (of some kind), so I'll close this. Thanks for the help anyhow :)