{"id":19929089,"url":"https://github.com/thescriptguy/docker-operations","last_synced_at":"2026-07-04T06:32:12.051Z","repository":{"id":199155722,"uuid":"702246445","full_name":"TheScriptGuy/docker-operations","owner":"TheScriptGuy","description":"Bash scripts to help lift the burden of docker operations","archived":false,"fork":false,"pushed_at":"2023-10-08T23:09:43.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T11:18:57.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheScriptGuy.png","metadata":{"files":{"readme":"README.md","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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-08T23:06:27.000Z","updated_at":"2023-10-08T23:09:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"41661140-0c9b-482c-a9ce-2f7fd1744e30","html_url":"https://github.com/TheScriptGuy/docker-operations","commit_stats":null,"previous_names":["thescriptguy/docker-operations"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheScriptGuy/docker-operations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2Fdocker-operations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2Fdocker-operations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2Fdocker-operations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2Fdocker-operations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheScriptGuy","download_url":"https://codeload.github.com/TheScriptGuy/docker-operations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheScriptGuy%2Fdocker-operations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35112704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-11-12T22:41:50.802Z","updated_at":"2026-07-04T06:32:12.021Z","avatar_url":"https://github.com/TheScriptGuy.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash scripts for docker :whale:\n\nManaging docker shouldn't have to be hard.\n\nI've written some bash scripts to help gather information from the containers running on the host.\nThese scripts need to be run on teh host that's running the docker daemon.\n\n## containers_exited_days.sh\nIn an effort to help minimize the operational bloat that comes from managing many containers. This bash script will help identify containers that have exited after a certain number of defined days.\n\nTo show the containers that have exited more than 90 days ago.\n```bash\n$ containers_exited_days 90\nImages with containers exited more than 90 day(s) ago:\n- prod1/container1 (Container ID: aea9a8314cbd, Status: Exited (137) 12 months ago)\n- dev1/container2 (Container ID: b3c73292fb7f, Status: Exited (137) 2 years ago)\n- qa/container3 (Container ID: 3411624e70ac1, Status: Exited (130) 2 years ago)\n```\n\n## container_ip_addresses.sh\nA bash script will list all the IP addresses and networks that each container exists in.\n\n```bash\n$ container_ip_addresses.sh\ncontainer1                          inside_network  192.168.1.4\ncontainer2                          dmz             192.168.2.105\ncontainer3                          dmz             192.168.2.120\ncontainer4                          dmz             192.168.2.100\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthescriptguy%2Fdocker-operations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthescriptguy%2Fdocker-operations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthescriptguy%2Fdocker-operations/lists"}