From 31c163a7c28f6244cbf7616521811535a60e4102 Mon Sep 17 00:00:00 2001 From: akshun Date: Sat, 24 Feb 2024 19:58:19 +0530 Subject: [PATCH] Modified to prune k3s images --- playbooks/prune-docker-images.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/prune-docker-images.yml b/playbooks/prune-docker-images.yml index 10979a5..7dc9ba8 100644 --- a/playbooks/prune-docker-images.yml +++ b/playbooks/prune-docker-images.yml @@ -1,6 +1,6 @@ --- -- hosts: docker_hosts +- hosts: kube + become: true tasks: - - name: Prune docker images - community.docker.docker_prune: - images: true + - name: Prune images + command: sudo k3s crictl rmi --prune