Author: Robert Kaussow <mail@geeklabor.de>
Date:   Sat Mar 21 14:05:43 2020 +0100

    refactoring
This commit is contained in:
Robert Kaussow 2020-03-21 13:09:33 +00:00
parent bd8cfe42c2
commit 35524945f6

View File

@ -8,87 +8,124 @@ type: docs
Setup docker-tidy garbage collector. Keep docker hosts small. Setup docker-tidy garbage collector. Keep docker hosts small.
* [Default Variables](#default-variables) * [Default Variables](#default-variables)
* [custodian_dangling_volumes](#custodian-dangling-volumes) * [dockertidy_dangling_volumes](#dockertidy-dangling-volumes)
* [custodian_exclude_container_label](#custodian-exclude-container-label) * [dockertidy_docker_socket_path](#dockertidy-docker-socket-path)
* [custodian_exclude_image](#custodian-exclude-image) * [dockertidy_dry_run](#dockertidy-dry-run)
* [custodian_image](#custodian-image) * [dockertidy_exclude_container_label](#dockertidy-exclude-container-label)
* [custodian_interval](#custodian-interval) * [dockertidy_exclude_container_labels](#dockertidy-exclude-container-labels)
* [custodian_max_container_age](#custodian-max-container-age) * [dockertidy_exclude_image](#dockertidy-exclude-image)
* [custodian_max_image_age](#custodian-max-image-age) * [dockertidy_exclude_images](#dockertidy-exclude-images)
* [dockertidy_image](#dockertidy-image)
* [dockertidy_interval](#dockertidy-interval)
* [dockertidy_log_level](#dockertidy-log-level)
* [dockertidy_max_container_age](#dockertidy-max-container-age)
* [dockertidy_max_image_age](#dockertidy-max-image-age)
* [Dependencies](#dependencies) * [Dependencies](#dependencies)
--- ---
## Default Variables ## Default Variables
### custodian_dangling_volumes ### dockertidy_dangling_volumes
Remove dangling volumes Remove dangling volumes.
#### Default value #### Default value
```YAML ```YAML
custodian_dangling_volumes: false dockertidy_dangling_volumes: false
``` ```
### custodian_exclude_container_label ### dockertidy_docker_socket_path
List of labels to exclude+
#### Default value #### Default value
```YAML ```YAML
custodian_exclude_container_label: [] dockertidy_docker_socket_path: /var/run/docker.sock
``` ```
### custodian_exclude_image ### dockertidy_dry_run
List of images to exclude Only log actions, don't cleanup anything.
#### Default value #### Default value
```YAML ```YAML
custodian_exclude_image: [] dockertidy_dry_run: false
``` ```
### custodian_image ### dockertidy_exclude_container_label
Docker image to use Never remove containers with this label `key` or label `key=value`.
### dockertidy_exclude_container_labels
#### Default value #### Default value
```YAML ```YAML
custodian_image: toolhippie/docker-custodian:latest dockertidy_exclude_container_labels: []
``` ```
### custodian_interval ### dockertidy_exclude_image
Interval for the systemd timer Never remove images with this tag.
### dockertidy_exclude_images
#### Default value #### Default value
```YAML ```YAML
custodian_interval: daily dockertidy_exclude_images: []
``` ```
### custodian_max_container_age ### dockertidy_image
Max container age Docker image to use.
#### Default value #### Default value
```YAML ```YAML
custodian_max_container_age: 3days dockertidy_image: xoxys/docker-tidy:latest
``` ```
### custodian_max_image_age ### dockertidy_interval
Max image age Interval for the systemd timer.
#### Default value #### Default value
```YAML ```YAML
custodian_max_image_age: 3days dockertidy_interval: daily
```
### dockertidy_log_level
Current log level.
#### Default value
```YAML
dockertidy_log_level: warning
```
### dockertidy_max_container_age
Maximum age for a container, containers older than this age will be removed.
#### Default value
```YAML
dockertidy_max_container_age: 5 days ago
```
### dockertidy_max_image_age
Maxium age for an image, images older than this age will be removed.
#### Default value
```YAML
dockertidy_max_image_age: 3 days ago
``` ```
## Dependencies ## Dependencies