docker_tidy
Setup docker-tidy garbage collector. Keep docker hosts small.
- Default Variables
- dockertidy_dangling_volumes
- dockertidy_docker_socket_path
- dockertidy_dry_run
- dockertidy_exclude_container_label
- dockertidy_exclude_container_labels
- dockertidy_exclude_image
- dockertidy_exclude_images
- dockertidy_image
- dockertidy_interval
- dockertidy_log_level
- dockertidy_max_container_age
- dockertidy_max_image_age
- Dependencies
Remove dangling volumes.
dockertidy_dangling_volumes: false
dockertidy_docker_socket_path: /var/run/docker.sock
Only log actions, don’t cleanup anything.
dockertidy_dry_run: false
Never remove containers with this label key
or label key=value
.
dockertidy_exclude_container_labels: []
Never remove images with this tag.
dockertidy_exclude_images: []
Docker image to use.
dockertidy_image: thegeeklab/docker-tidy:latest
Interval for the systemd timer.
dockertidy_interval: daily
Current log level.
dockertidy_log_level: warning
Maximum age for a container, containers older than this age will be removed.
dockertidy_max_container_age: 5 days ago
Maxium age for an image, images older than this age will be removed.
dockertidy_max_image_age: 3 days ago
None.