Last active
June 12, 2024 18:14
-
-
Save mortensteenrasmussen/512f0566dbc3ef1cc4a2c47dd9cdb973 to your computer and use it in GitHub Desktop.
Clean up untagged manifests in private docker registry
Thank you @mortensteenrasmussen for a very useful script. Especially line#10 is a strong piece of shell-engineering!
How should "curl -s -X ..." work without an access token? I had to get the token for every single repository and pass it to the curl command to get it work.
This was awesome. Just a note that:
As the curl command is silent, in my case at least, the docker registry storage delete option was set to false, so the script wasn't able to delete anything.
You might want to write those logs to somewhere like /var/log/cleanupScript.log to make sure you are cleaning what you mean.
Works perfectly. Thank you so much :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very many!