Last active
February 7, 2021 07:56
-
-
Save shahidv3/7f47e92e04af4e13c94729fad91a5125 to your computer and use it in GitHub Desktop.
Shell script to remove docker container files from Harbor
hi @leventgenc
sorry for responding late. I'm seeing it today. Better late than never.
hoping this would be useful to other folks
You can List up all Docker images and details of each image under the project example like 'library' like this
$ curl -i -k -X GET "https://harbor.mycompany.local/api/search?q=library/
redirect the above output to a file and extract the repo names using awk command.
Why the script is useful - I have captured in this blog link
https://medium.com/@shahids89/harbor-container-images-cleanup-automation-1de7cc7c5655
thanks , sahid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First of all, thank you very much.
Could you give more information about the use of the harbor_tags_delete.sh script?
What format of repos should the repos.txt file look like?
Can you tell with an example structure?