{"id":18913224,"url":"https://github.com/metonymic-smokey/docker-aliases","last_synced_at":"2026-05-08T04:14:11.800Z","repository":{"id":104955057,"uuid":"279351608","full_name":"metonymic-smokey/docker-aliases","owner":"metonymic-smokey","description":"Automating simple docker tasks when working with multiple similarly named containers/images.","archived":false,"fork":false,"pushed_at":"2021-04-26T15:18:45.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T09:35:58.558Z","etag":null,"topics":["docker","docker-container","docker-image","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/metonymic-smokey.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":"2020-07-13T16:11:09.000Z","updated_at":"2023-03-04T10:25:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c0d3958-e0e1-4165-a958-98a996259f6f","html_url":"https://github.com/metonymic-smokey/docker-aliases","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/metonymic-smokey/docker-aliases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonymic-smokey%2Fdocker-aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonymic-smokey%2Fdocker-aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonymic-smokey%2Fdocker-aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonymic-smokey%2Fdocker-aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metonymic-smokey","download_url":"https://codeload.github.com/metonymic-smokey/docker-aliases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonymic-smokey%2Fdocker-aliases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32766295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T02:36:36.067Z","status":"ssl_error","status_checked_at":"2026-05-08T02:36:07.210Z","response_time":54,"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":["docker","docker-container","docker-image","golang"],"created_at":"2024-11-08T10:06:13.161Z","updated_at":"2026-05-08T04:14:11.783Z","avatar_url":"https://github.com/metonymic-smokey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-aliases\n\nThis is a collection of handy docker functions/aliases created using the docker Go SDK.   \n\nSome of these may be possible using a combination of manipulating bash and nested docker commands/flags, but these are usually long and require a good knowledge of both. This aims to be an easier to use option than that.  \n\n1. `regex_remove.go` : removes all docker containers based on their name matching a user defined regex.Utility: `go run remove.go db*` stops containers named `db1`,`db2`,`db4` at once instead of `docker rm db1 db2 db4` after doing a `docker ps` to look at all the containers.\n\n2. `image_remove.go` : stops or removes all containers with a specific image name or image ID.\nUtility: `go run image_remove.go --name=couchbase --op=remove` removes all containers based on the `couchbase` image instead of using a lengthy, nested docker command/individually searching and stopping the containers. \n\n3. `none_remove.go` : removes all images with the `\u003cnone\u003e` tag, created when another image with the same tag is built.      \nUtility: `go run none_remove.go` removes all such images, which is primarily useful in case of large images.    \n\n4. `n-remove.go` : removes the top `n` most recent containers.  \nUtility: `go run n-remove.go -n=4` removes the top 4 containers.     \n\n## Prerequisites:\n1. docker\n2. docker go SDK\n3. Go version 1.13+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetonymic-smokey%2Fdocker-aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetonymic-smokey%2Fdocker-aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetonymic-smokey%2Fdocker-aliases/lists"}