Yelp/docker-custodian là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng Python, với 374 sao. Keep docker hosts tidy
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
.. code:: sh
pip install docker-custodian
dcgc
----
Remove old docker containers and docker images.
``dcgc`` will remove stopped containers and unused images that are older than
"max age". Running containers, and images which are used by a container are
never removed.
Maximum age can be specificied with any format supported by
`pytimeparse <https://github.com/wroberts/pytimeparse>`_.
Example:
.. code:: sh
dcgc --max-container-age 3days --max-image-age 30days
Prevent images from being removed
dcgc supports an image exclude list. If you have images that you'd like
to keep around forever you can use the exclude list to prevent them from
being removed.
::
--exclude-image
Never remove images with this tag. May be specified more than once.
--exclude-image-file
Path to a file which contains a list of images to exclude, one
image tag per line.
You also can use basic pattern matching to exclude images with generic tags.
Prevent containers and associated images from being removed
``dcgc`` also supports a container exclude list based on labels. If there are
stopped containers that you'd like to keep, then you can check the labels to
prevent them from being removed.
::
--exclude-container-label
Never remove containers that have the label key=value. =value can be
omitted and in that case only the key is checked. May be specified
more than once.
You also can use basic pattern matching to exclude generic labels.
.. code::
foo*
com.docker.compose.project=test*
com.docker*=*bar*
dcstop
------
Stop containers that have been running for too long.
``dcstop`` will ``docker stop`` containers where the container name starts
with `--prefix` and it has been running for longer than `--max-run-time`.
Example:
.. code:: sh
dcstop --max-run-time 2days --prefix "projectprefix_"
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/Yelp/docker-custodian là nguồn chính thức.
Yelp/docker-custodian có phải mã nguồn mở không?
Có — Yelp/docker-custodian phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/Yelp/docker-custodian.
Yelp/docker-custodian là gì?
Yelp/docker-custodian (Yelp/docker-custodian) là dự án Python trên GitHub. Theo mô tả gốc: Keep docker hosts tidy
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về docker-custodian?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về docker-custodian.