{"id":13416578,"url":"https://github.com/tjamet/caduc","last_synced_at":"2026-03-17T19:44:53.652Z","repository":{"id":84325193,"uuid":"54902558","full_name":"tjamet/caduc","owner":"tjamet","description":"Event based Continuous Docker Cleaner","archived":false,"fork":false,"pushed_at":"2019-01-07T16:07:50.000Z","size":80,"stargazers_count":20,"open_issues_count":32,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T05:37:22.109Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tjamet.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null}},"created_at":"2016-03-28T15:36:06.000Z","updated_at":"2025-05-16T19:50:46.000Z","dependencies_parsed_at":"2024-01-07T10:50:46.242Z","dependency_job_id":null,"html_url":"https://github.com/tjamet/caduc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tjamet/caduc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fcaduc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fcaduc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fcaduc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fcaduc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tjamet","download_url":"https://codeload.github.com/tjamet/caduc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tjamet%2Fcaduc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30629878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:01:01.298Z","updated_at":"2026-03-17T19:44:53.617Z","avatar_url":"https://github.com/tjamet.png","language":"Python","funding_links":[],"categories":["Development with Docker","Dev Tools"],"sub_categories":["Garbage Collection"],"readme":"CaDuC\n=================================\n.. image:: https://travis-ci.org/tjamet/caduc.svg?branch=master\n    :target: https://travis-ci.org/tjamet/caduc\nCaduc watch changes on the docker engine to schedule unused image removal.\nA gracetime is observed between the removal of a container and removal of the image\n\nHow To\n======\n\nRun in a container\n------------------\n\nAs simple as running:\n``docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock tjamet/caduc``\n\nOptionnally, you can provide a configuration file:\n``docker run --rm -ti -v /var/run/docker.sock:/var/run/docker.sock -v $HOME/.caduc:/var/run/caduc:ro tjamet/caduc --config-file /var/run/caduc/config.yml``\n\nInstall\n-------\n\nInstall the tool by launching ``python setup.py install`` as root or ``python setup.py install --user``\nIf you do not have root acces or do not want to bother your co-workers on the same host\n\nUse\n---\n\nSetup your environment so that ``docker ps`` returns the list of running containers\nTo delete images one hour after removal of the last container running them, simply run ``caduc --image-gracetime=\"1h\"``.\n\nThe default gracetime is of 1 day.\n\nCustomize\n---------\n\nYou can customize image grace time, the delay between last container/children layer using the image is deleted\nand the actual image removal. This customization can be done per image, matching their tagged name.\nTo do so, create ``~/.caduc`` directory with a ``config.yml`` file inside it. The matching will be done\nby python's `fnmatch function \u003chttps://docs.python.org/2/library/fnmatch.html#fnmatch.fnmatch\u003e`_.\n\nThis config file should look like:\n\n    images:\n        \u003cmatch\u003e:\n            grace_time: \u003csome_delay\u003e\n\nTo keep base images stored on your local registry (my.repo.local) 2 days and never delete images pulled\nfrom tjamet on dockerhub, create a config.yml file like this. The delay should be a string matching\n`pytimeparse \u003chttps://pypi.python.org/pypi/pytimeparse/1.1.0\u003e`_.\n\n    images:\n        my.repo.local/base/*:\n            grace_time: 2d\n        tjamet/*:\n            grace_time: -1\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjamet%2Fcaduc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjamet%2Fcaduc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjamet%2Fcaduc/lists"}