Commit 8ff17b7c authored by Edwin Hoksberg's avatar Edwin Hoksberg

Use -q flag instead of --format.

parent 5fe9ea0a
......@@ -5,11 +5,10 @@ docker version >/dev/null 2>/dev/null
echo Clearing docker cache...
CONTAINERS=$(docker ps -a \
CONTAINERS=$(docker ps -a -q \
--filter=status=exited \
--filter=status=dead \
--filter=label=com.gitlab.gitlab-runner.type=cache \
if [ -n "${CONTAINERS}" ]; then
docker rm -v ${CONTAINERS}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment