diff --git a/roles/reset/tasks/main.yml b/roles/reset/tasks/main.yml index 26b6141dd..624e7135e 100644 --- a/roles/reset/tasks/main.yml +++ b/roles/reset/tasks/main.yml @@ -38,6 +38,10 @@ - name: reset | remove all containers shell: "{{ docker_bin_dir }}/docker ps -aq | xargs -r docker rm -fv" + register: remove_all_containers + retries: 4 + until: remove_all_containers.rc == 0 + delay: 5 tags: ['docker'] - name: reset | restart docker if needed