mirror of
https://github.com/thegeeklab/docker-tidy.git
synced 2024-11-25 05:30:39 +00:00
commit
4c008ed05a
11
README.rst
11
README.rst
@ -7,6 +7,11 @@ Docker Custodian
|
|||||||
Keep docker hosts tidy.
|
Keep docker hosts tidy.
|
||||||
|
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
:backlinks: none
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dcgc
|
dcgc
|
||||||
----
|
----
|
||||||
|
|
||||||
@ -21,6 +26,8 @@ Maximum age can be specificied with any format supported by
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
.. code:: sh
|
||||||
|
|
||||||
dcgc --max-container-age 3days --max-image-age 30days
|
dcgc --max-container-age 3days --max-image-age 30days
|
||||||
|
|
||||||
|
|
||||||
@ -31,6 +38,8 @@ Prevent images from being removed
|
|||||||
to keep around forever you can use the exclude list to prevent them from
|
to keep around forever you can use the exclude list to prevent them from
|
||||||
being removed.
|
being removed.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
--exclude-image
|
--exclude-image
|
||||||
Never remove images with this tag. May be specified more than once.
|
Never remove images with this tag. May be specified more than once.
|
||||||
|
|
||||||
@ -51,4 +60,6 @@ with `--prefix` and it has been running for longer than `--max-run-time`.
|
|||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
.. code:: sh
|
||||||
|
|
||||||
dcstop --max-run-time 2days --prefix "projectprefix_"
|
dcstop --max-run-time 2days --prefix "projectprefix_"
|
||||||
|
Loading…
Reference in New Issue
Block a user