Skip to content
Snippets Groups Projects
Commit cbaa2b57 authored by Chad Swenson's avatar Chad Swenson Committed by Matthew Mosesohn
Browse files

Retry Remove all Docker containers in reset (#1623)

Due to various occasional docker bugs, removing a container will sometimes fail. This can often be mitigated by trying again.
parent 0453ed82
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
- name: reset | remove all containers - name: reset | remove all containers
shell: "{{ docker_bin_dir }}/docker ps -aq | xargs -r docker rm -fv" 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'] tags: ['docker']
- name: reset | restart docker if needed - name: reset | restart docker if needed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment