Add docker-prune
This commit is contained in:
9
docker-prune
Normal file
9
docker-prune
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Prune unused Docker images
|
||||
hosts: all
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Prune all unused Docker images
|
||||
ansible.builtin.shell: docker image prune -a -f
|
||||
args:
|
||||
warn: false
|
||||
Reference in New Issue
Block a user