summaryrefslogtreecommitdiff
path: root/test/utils/shippable/shippable.sh
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-07-09 21:06:13 -0700
committerMatt Clay <matt@mystile.com>2018-07-09 21:48:11 -0700
commit528de5b82f1e59a1a04c596e084921de81d92646 (patch)
treec820756e74ad2ddb543290a9421bf5358166c1a1 /test/utils/shippable/shippable.sh
parent673c55f2efce52c155872c80b0bff160e4a7b7b7 (diff)
downloadansible-528de5b82f1e59a1a04c596e084921de81d92646.tar.gz
Remove unwanted containers at CI job start.
Diffstat (limited to 'test/utils/shippable/shippable.sh')
-rwxr-xr-xtest/utils/shippable/shippable.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/utils/shippable/shippable.sh b/test/utils/shippable/shippable.sh
index 54dc2fbbd1..3396ecc8bf 100755
--- a/test/utils/shippable/shippable.sh
+++ b/test/utils/shippable/shippable.sh
@@ -12,6 +12,12 @@ test="$1"
docker images ansible/ansible
docker ps
+for container in $(docker ps --format '{{.Image}} {{.ID}}' | grep -v '^drydock/' | sed 's/^.* //'); do
+ docker rm -f "${container}"
+done
+
+docker ps
+
if [ -d /home/shippable/cache/ ]; then
ls -la /home/shippable/cache/
fi