add container/image clean up tasks for osbs-dev
This commit is contained in:
parent
7f84dfa361
commit
ab03947399
1 changed files with 10 additions and 0 deletions
|
@ -122,3 +122,13 @@
|
|||
- name: create buildroot container
|
||||
shell: atomic-reactor create-build-image --reactor-tarball-path /usr/share/atomic-reactor/atomic-reactor.tar.gz /usr/share/atomic-reactor/images/dockerhost-builder buildroot
|
||||
|
||||
- name: clean up exited containers
|
||||
shell: for i in $(docker ps -a | awk '/Exited/ { print $1 }') ; do docker rm $i; done
|
||||
tags:
|
||||
- cleanup
|
||||
|
||||
- name: clean up dangling images
|
||||
shell: for i in $(docker images -q -f "dangling=true") ; do docker rmi $i; done
|
||||
tags:
|
||||
- cleanup
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue