diff --git a/deployment/deprecated/docker/docker-baremetal-ansible.yaml b/deployment/deprecated/docker/docker-baremetal-ansible.yaml index 25890e34d5..2d7e72f025 100644 --- a/deployment/deprecated/docker/docker-baremetal-ansible.yaml +++ b/deployment/deprecated/docker/docker-baremetal-ansible.yaml @@ -247,6 +247,9 @@ outputs: systemd: name: docker register: docker_service_state - - name: Run docker system prune - shell: docker system prune -a -f + - name: Run docker image prune + shell: docker image prune -f + when: docker_service_state.status['SubState'] == 'running' + - name: Run docker volume prune + shell: docker volume prune -f when: docker_service_state.status['SubState'] == 'running'