aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-10-25 14:20:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-10-25 14:20:50 +0300
commitfb1f7c8665f91be0f18c1cd38ccbdd638a5e2aef (patch)
treea0b9f30389ea00a0ade0278de6866a18304714c5
parentworkflows/run: tweak step names (diff)
downloadmaintenance-fb1f7c8665f91be0f18c1cd38ccbdd638a5e2aef.tar.gz
maintenance-fb1f7c8665f91be0f18c1cd38ccbdd638a5e2aef.zip
docker: fix Docker upgrade breakage
Diffstat (limited to '')
-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