prunedocker.yml
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Prune unused Docker images
|
|
||||||
hosts: all
|
|
||||||
become: yes
|
|
||||||
tasks:
|
|
||||||
- name: Prune dangling images
|
|
||||||
docker_image:
|
|
||||||
prune: yes
|
|
||||||
dangling: yes
|
|
||||||
|
|
||||||
- name: Prune all unused images
|
|
||||||
command: docker image prune -a -f
|
|
||||||
args:
|
|
||||||
warn: false
|
|
||||||
Reference in New Issue
Block a user