Currently I am running
while true; do
docker system prune --all -f;
sleep 6400;
done
In a daemonset to remove older images in my containers.
There is some unused images that I still want to keep around. Is there a possibility to filter out some images to not be pruned by this command?
for example after running docker system prune command,the following should not change if I want to prune everything else except repository a
Repository TAG IMAGE_ID CREATED SIZE
a 12dac 3eadf now 1
a 44rfd 233df 4 month ago 1
Thanks.