docker-cleaner-1.3.0
توضیحات
This utility is designed for cleaning up docker resources.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | docker-cleaner-1.3.0 |
| نام | docker-cleaner |
| نسخه کتابخانه | 1.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Daniil Trishkin |
| ایمیل نویسنده | asteroid566@gmail.com |
| آدرس صفحه اصلی | https://github.com/FromZeus/docker-cleaner |
| آدرس اینترنتی | https://pypi.org/project/docker-cleaner/ |
| مجوز | - |
|language| |license|
==============
docker-cleaner
==============
Description
~~~~~~~~~~~
This utility is designed for cleaning up docker resources.
Installation
~~~~~~~~~~~~
``python setup.py install``
or
``pip install -e .``
or
``pip install docker-cleaner``
How to use
~~~~~~~~~~
Run ``docker-cleaner images -t 120 -o 120 -f images --images-include foo-image bar-image --prune containers volumes -u -l docker-cleanr.log``
Also checkout list of `arguments`_
arguments
^^^^^^^^^
* ``resources`` - List of resources for removing. Choose from: ``images``, ``volumes``, ``all``
* ``-f, --force`` - Force removing of resources. Choose from: ``images``, ``volumes``, ``all``
* ``-u, --untagged`` - Remove untagged images
* ``-v, --client-version`` - Version of docker client to use
* ``-o, --older`` - Clear resources that older amount of time (in minutes)
* ``--images-include`` - Filter images that only contains any of that names
* ``--volumes-include`` - Filter volumes that only contains any of that name
* ``--images-exclude`` - Exclude images that contains any of that names
* ``--volumes-exclude`` - Exclude volumes that contains any of that name
* ``-p, --prune`` - Prune specified resources. Choose from: ``containers``, ``images``, ``volumes``, ``all``
* ``-t, --timeout`` - Timeout of cleaning. Live it empty in case of using cron job.
* ``--loglevel`` - Logging level. Choose from: ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO``, ``DEBUG``, ``NOTSET``
* ``-l, --log`` - Redirect logging to file
.. |language| image:: https://img.shields.io/badge/language-python-blue.svg
.. |license| image:: https://img.shields.io/badge/license-Apache%202-blue.svg
نحوه نصب
نصب پکیج whl docker-cleaner-1.3.0:
pip install docker-cleaner-1.3.0.whl
نصب پکیج tar.gz docker-cleaner-1.3.0:
pip install docker-cleaner-1.3.0.tar.gz