97 lines
1.8 KiB
Markdown
97 lines
1.8 KiB
Markdown
|
---
|
||
|
title: docker_tidy
|
||
|
type: docs
|
||
|
---
|
||
|
|
||
|
[![Source Code](https://img.shields.io/badge/gitea-source%20code-blue?logo=gitea&logoColor=white)](https://gitea.rknet.org/ansible/xoxys.docker_tidy) [![Build Status](https://img.shields.io/drone/build/ansible/xoxys.docker_tidy?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/ansible/xoxys.docker_tidy) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
|
||
|
|
||
|
Setup docker-tidy garbage collector. Keep docker hosts small.
|
||
|
|
||
|
* [Default Variables](#default-variables)
|
||
|
* [custodian_dangling_volumes](#custodian-dangling-volumes)
|
||
|
* [custodian_exclude_container_label](#custodian-exclude-container-label)
|
||
|
* [custodian_exclude_image](#custodian-exclude-image)
|
||
|
* [custodian_image](#custodian-image)
|
||
|
* [custodian_interval](#custodian-interval)
|
||
|
* [custodian_max_container_age](#custodian-max-container-age)
|
||
|
* [custodian_max_image_age](#custodian-max-image-age)
|
||
|
* [Dependencies](#dependencies)
|
||
|
|
||
|
---
|
||
|
|
||
|
## Default Variables
|
||
|
|
||
|
### custodian_dangling_volumes
|
||
|
|
||
|
Remove dangling volumes
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_dangling_volumes: false
|
||
|
```
|
||
|
|
||
|
### custodian_exclude_container_label
|
||
|
|
||
|
List of labels to exclude+
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_exclude_container_label: []
|
||
|
```
|
||
|
|
||
|
### custodian_exclude_image
|
||
|
|
||
|
List of images to exclude
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_exclude_image: []
|
||
|
```
|
||
|
|
||
|
### custodian_image
|
||
|
|
||
|
Docker image to use
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_image: toolhippie/docker-custodian:latest
|
||
|
```
|
||
|
|
||
|
### custodian_interval
|
||
|
|
||
|
Interval for the systemd timer
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_interval: daily
|
||
|
```
|
||
|
|
||
|
### custodian_max_container_age
|
||
|
|
||
|
Max container age
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_max_container_age: 3days
|
||
|
```
|
||
|
|
||
|
### custodian_max_image_age
|
||
|
|
||
|
Max image age
|
||
|
|
||
|
#### Default value
|
||
|
|
||
|
```YAML
|
||
|
custodian_max_image_age: 3days
|
||
|
```
|
||
|
|
||
|
## Dependencies
|
||
|
|
||
|
None.
|