How to delete docker images from docker hub using a shell script.
I want to delete all images from docker hub older than past 50 days of a private docker hub account.
Any ideas? Which tools to use while creating and running this shell script from either through Jenkins or bash terminal.
I'm thinking of using curl to achieve my goal.
Below script will delete all images in all repositories of your docker hub account which are older than 50 days.
My version for a specific repository in a specific organization.
You should tweak the pagination ('?page=2000') to grab the old images you are interested in.
Then run it in a bash loop.
./delete_old_images.sh