Merge "Ensure docker running before execute the destroy action"

This commit is contained in:
Zuul 2018-01-12 08:32:54 +00:00 committed by Gerrit Code Review
commit 95cd334707
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,8 @@
---
- include: copy_tools.yml
- include: validate_docker_execute.yml
- include: cleanup_containers.yml
- include: cleanup_images.yml

View File

@ -0,0 +1,3 @@
---
- name: Ensure the docker service is running
command: /tmp/kolla-cleanup/tools/validate-docker-execute.sh

View File

@ -4,8 +4,6 @@
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."
. tools/validate-docker-execute.sh
function process_cmd {
if [[ -z "$KOLLA_IMAGES" ]]; then
echo "No images to cleanup, exit now."