Skip to content

Latest commit

 

History

History
executable file
·
39 lines (27 loc) · 1.14 KB

File metadata and controls

executable file
·
39 lines (27 loc) · 1.14 KB

Docker GC

Garbage collection playbooks docker-gc/config.yml.

Tags Tasks
docker_gc_containers Containers that are in exited status and dead
docker_gc_images Images in dangling stats and that don't belong to any remaining container.
docker_gc_volumes Remove volumes that are not associated to any remaining container after removal

Dry Run

Performing a dry-run instead of the docker garbage collection

Parameters Default
docker_gc_dryrun False
ansible-playbook docker-gc/config.yml -e docker_gc_dryrun=true

GC Containers

ansible-playbook docker-gc/config.yml -t docker_gc_containers

GC Images

ansible-playbook docker-gc/config.yml -t docker_gc_images

GC Volumes

ansible-playbook docker-gc/config.yml -t docker_gc_volumes