Skip to content

Feature/better clear docker cache

akg requested to merge (removed):feature/better-clear-docker-cache into master

What does this MR do?

Improve error handling and shell scripting in the clear-docker-cache shell script

Why was this MR needed?

As a user, when running this command in a crontab, I want to see verbose error output when debugging. Moreover, using xargs to remove the docker images is cleaner than storing the list of images in a string and then checking if that string is empty or not.

What's the best way to test this MR?

You can test this script by turning docker on/off on your host machine and viewing the error/success messages.

What are the relevant issue numbers?

Issue #26480

Edited by Elliot Rushton

Merge request reports