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 |
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
ansible-playbook docker-gc/config.yml -t docker_gc_containers
ansible-playbook docker-gc/config.yml -t docker_gc_images
ansible-playbook docker-gc/config.yml -t docker_gc_volumes