- Playbook to help cleanup untagged docker images

This commit is contained in:
shockrah 2022-03-06 16:43:41 -08:00
parent 60d95e044a
commit d72bcfd23f

View 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