From fb1f7c8665f91be0f18c1cd38ccbdd638a5e2aef Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 25 Oct 2021 14:20:50 +0300 Subject: docker: fix Docker upgrade breakage --- roles/docker/tasks/main.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'roles/docker/tasks/main.yml') diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index d278ccb..cae6465 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -6,12 +6,14 @@ - name: Clean up Docker data become: yes - community.docker.docker_prune: - containers: yes - images: yes - images_filters: - dangling: false - networks: yes - volumes: yes - builder_cache: yes + command: docker system prune -a -f --volumes + # Broken after a Docker upgrade: + #community.docker.docker_prune: + # containers: yes + # images: yes + # images_filters: + # dangling: false + # networks: yes + # volumes: yes + # builder_cache: yes when: docker_version.rc == 0 -- cgit v1.2.3