Add documentation for Janitor
This commit is contained in:
parent
0c20789ec6
commit
4e88b991ae
@ -10,8 +10,39 @@ scheduling rule (default is `janitor.exclude=true`).
|
||||
This will run a task daily (by default) that will delete any unused
|
||||
image, and any orphaned volume. The rancher container images are excluded
|
||||
from the list of images to clean up, and you can add your own containers to
|
||||
the exclude list if you wish.
|
||||
the exclude list if you wish. It will also remove any stopped containers
|
||||
that are taking up space.
|
||||
|
||||
This will halp to prevent the /var/lib/docker filesystem from filling up
|
||||
with old and unused container images.
|
||||
|
||||
### Keep list
|
||||
|
||||
You can specify match patterns for unused Images, and stopped Containers,
|
||||
which should be excluded from the cleanup.
|
||||
|
||||
The match patterns are comma-separated Left Anchored Bash Shell wildcard
|
||||
patterns. For example, an image called **foo/bar:latest** will match:
|
||||
|
||||
* foo/
|
||||
* foo/bar
|
||||
* \*:latest
|
||||
* \*/bar
|
||||
* \*:\*
|
||||
* fo
|
||||
|
||||
However it will notmatch
|
||||
|
||||
* foo/baz
|
||||
* bar:latest
|
||||
* foo/\*:v1
|
||||
|
||||
By default, nothing will be matched. If you want to match everything,
|
||||
then use a pattern **\*:\***
|
||||
|
||||
### Warning
|
||||
|
||||
If you are using 'run-once' sidekick containers that mount a volume, then
|
||||
these containers may be removed by Janitor! Ensure that the list of
|
||||
Containers to keep matches these containers -- setting it to
|
||||
'\*:\*' will keep all containers, which is in general the best solution.
|
||||
|
Loading…
x
Reference in New Issue
Block a user