* Janitor: new docker-cleanup image version The initial motivation for this version bump is support for docker 1.9+ Currently volumes don't get removed properly and lead to containers to stall at start up, which is a pain to diagnose in rancher. ref: https://github.com/meltwater/docker-cleanup/issues/24 * janitor: add support for KEEP_CONTAINERS_NAMED feature * janitor: document '**None**' and '**All**' * janitor: run with privileged mode unconditionnally According to @sshipway, it seemed to be incompatible with a lot of docker/rancher versions. * janitor: bump docker-cleanup image version to 1.8.0
37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
.catalog:
|
|
name: "Janitor"
|
|
version: "v1.7"
|
|
description: "Docker cleanup"
|
|
uuid: janitor-3
|
|
questions:
|
|
- variable: "FREQUENCY"
|
|
label: "Frequency"
|
|
description: "Run the cleanup on a cycle of this many seconds"
|
|
default: 3600
|
|
required: true
|
|
type: "int"
|
|
- variable: "EXCLUDE_LABEL"
|
|
label: "Exclude label"
|
|
description: "Specify a Rancher host label here that will be used to determine on which hosts the Janitor container should not deploy."
|
|
default: janitor.exclude=true
|
|
required: true
|
|
type: "string"
|
|
- variable: "KEEP"
|
|
label: "Keep images"
|
|
description: "A comma separated list of images that should never be removed. These are left-anchored Bash Shell Wildcard patterns."
|
|
default: "rancher/"
|
|
required: false
|
|
type: "string"
|
|
- variable: "KEEPC"
|
|
label: "Keep containers"
|
|
description: "A comma separated list of images that should never have stopped containers removed. These are left-anchored Bash Shell Wildcard patterns."
|
|
default: "*:*"
|
|
required: false
|
|
type: "string"
|
|
- variable: "KEEPCN"
|
|
label: "Keep named containers"
|
|
description: "A comma separated list of names of exited or dead container that should never be removed. These are left-anchored Bash Shell Wildcard patterns."
|
|
default: "**None**"
|
|
required: false
|
|
type: "string"
|