gitlab-ci: force cleanup of docker images

This commit is contained in:
Matthias Hochsteger 2016-06-29 10:34:25 +02:00
parent 2ecce84d49
commit e040e3b8eb

View File

@ -169,7 +169,7 @@ linux_cleanup:
- linux - linux
script: script:
# remove intermediate and old docker images and containers # remove intermediate and old docker images and containers
- docker rm `docker ps --no-trunc -aq` - docker rm -f `docker ps --no-trunc -aq`
- docker images --no-trunc -aqf "dangling=true" | xargs docker rmi -f - docker images --no-trunc -aqf "dangling=true" | xargs docker rmi -f
when: always when: always