Skip to content
Snippets Groups Projects
Commit 9a80c4e5 authored by jurgenhaas's avatar jurgenhaas
Browse files

#19 Kill outdated node containers as well

parent 02758699
No related branches found
No related tags found
No related merge requests found
......@@ -27,5 +27,18 @@ if [[ -n ${PHP_VERSION} ]]; then
break
fi
done
IMAGEID=$(docker image ls -q node:8-jessie-slim)
if [[ -n ${IMAGEID} ]]; then
while true; do
ID=$(docker container ls --all -q -f ancestor=${IMAGEID})
if [[ -n ${ID} ]]; then
echo "Removing outdated node container ..."
docker kill ${ID} >/dev/null
docker rm ${ID} >/dev/null
else
break
fi
done
fi
fi
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment