{"id":20153728,"url":"https://github.com/vladwa/docker-cleanup-script","last_synced_at":"2025-04-09T21:33:47.503Z","repository":{"id":181749944,"uuid":"115717417","full_name":"vladwa/docker-cleanup-script","owner":"vladwa","description":"Docker cleanup shell script.","archived":false,"fork":false,"pushed_at":"2017-12-29T18:05:05.000Z","size":2,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T23:27:09.584Z","etag":null,"topics":["docker","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vladwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-29T11:35:45.000Z","updated_at":"2024-11-04T23:46:36.000Z","dependencies_parsed_at":"2023-07-21T17:16:57.790Z","dependency_job_id":null,"html_url":"https://github.com/vladwa/docker-cleanup-script","commit_stats":null,"previous_names":["vladwa/docker-cleanup-script"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladwa%2Fdocker-cleanup-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladwa%2Fdocker-cleanup-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladwa%2Fdocker-cleanup-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vladwa%2Fdocker-cleanup-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vladwa","download_url":"https://codeload.github.com/vladwa/docker-cleanup-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248115057,"owners_count":21050159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","shell-script"],"created_at":"2024-11-13T23:21:01.648Z","updated_at":"2025-04-09T21:33:47.488Z","avatar_url":"https://github.com/vladwa.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Docker Cleanup script:\n================================================================================\n\n1. Delete docker Images with \"\u003cnone\u003e\" as a tag name.\n\t- Command : ```docker rmi -f $(docker images | grep -w \"\u003cnone\u003e\" | awk {print $3})```\n\n2. Delete \"Dead\" or \"Exited\" containers.\n\t- Command : ```docker rm $(docker ps -a | grep \"Dead\\|Exited\" | awk '{print $1}')```\n\n3. Delete dangling docker images.\n\t- Command : ``docker rmi -f $(docker images -qf dangling=true)```\n\n4. Delete docker images older then one month.\n\t- Command : ```docker rmi -f $(docker images | awk '{print $3,$4,$5}' | grep '[5-9]\\{1\\}\\ weeks\\|years\\|months' | awk '{print $1}')```\n\t\n5. Delete or clean up unused docker volumes. \n\t- Command : ```docker rmi -f $(docker volume ls -qf dangling=true)```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladwa%2Fdocker-cleanup-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladwa%2Fdocker-cleanup-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladwa%2Fdocker-cleanup-script/lists"}