Remove unwanted containers at CI job start.

(cherry picked from commit 528de5b82f)
This commit is contained in:
Matt Clay 2018-07-09 21:06:13 -07:00
parent edf933918d
commit 0c504ce2c4

View file

@ -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