aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/docker/tasks/main.yml18
1 files changed, 10 insertions, 8 deletions
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