Remove unwanted containers at CI job start.

(cherry picked from commit 528de5b82f)
pull/41931/merge
Matt Clay 6 years ago
parent 0c985fee8a
commit b00358e4fb

@ -12,6 +12,12 @@ test="$1"
docker images ansible/ansible docker images ansible/ansible
docker ps 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 if [ -d /home/shippable/cache/ ]; then
ls -la /home/shippable/cache/ ls -la /home/shippable/cache/
fi fi

Loading…
Cancel
Save