- Playbook to help cleanup untagged docker images
This commit is contained in:
parent
60d95e044a
commit
d72bcfd23f
6
docker-host/setup/handlers/docker-cleanup.yml
Normal file
6
docker-host/setup/handlers/docker-cleanup.yml
Normal file
@ -0,0 +1,6 @@
|
||||
- name: Cleanup old containers
|
||||
become: yes
|
||||
become_method: sudo
|
||||
listen: cleanup-docker
|
||||
command: docker images | grep none | awk '{print $3}' | xargs docker rmi
|
||||
|
Loading…
Reference in New Issue
Block a user