{"id":29027507,"url":"https://github.com/pkharsimran/dncheckbashscript","last_synced_at":"2026-04-07T09:31:45.125Z","repository":{"id":205039776,"uuid":"713262917","full_name":"PKHarsimran/DNCheckBashScript","owner":"PKHarsimran","description":"This repository contains a Bash script designed to help users manage and inspect their Docker network environments. The script provides an easy-to-use command-line tool to list all Docker networks on a system and identify whether they are in use by any containers.","archived":false,"fork":false,"pushed_at":"2023-11-02T07:12:22.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T06:37:36.846Z","etag":null,"topics":["automation","bash","cli","container","devops","docker","docker-networks","docker-utilities","json","linux","network-management","network-tool","open-source","script","system-administration"],"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/PKHarsimran.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}},"created_at":"2023-11-02T06:57:07.000Z","updated_at":"2023-11-02T07:05:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae1c5f42-2076-4cab-8823-39857b653222","html_url":"https://github.com/PKHarsimran/DNCheckBashScript","commit_stats":null,"previous_names":["pkharsimran/dncheckbashscript"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PKHarsimran/DNCheckBashScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKHarsimran%2FDNCheckBashScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKHarsimran%2FDNCheckBashScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKHarsimran%2FDNCheckBashScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKHarsimran%2FDNCheckBashScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PKHarsimran","download_url":"https://codeload.github.com/PKHarsimran/DNCheckBashScript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PKHarsimran%2FDNCheckBashScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31507978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["automation","bash","cli","container","devops","docker","docker-networks","docker-utilities","json","linux","network-management","network-tool","open-source","script","system-administration"],"created_at":"2025-06-26T06:30:35.915Z","updated_at":"2026-04-07T09:31:45.109Z","avatar_url":"https://github.com/PKHarsimran.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DNCheckBashScript\nThis repository contains a Bash script designed to help users manage and inspect their Docker network environments. The script provides an easy-to-use command-line tool to list all Docker networks on a system and identify whether they are in use by any containers.\n\n\n# Features\n\n- **Network Usage Detection:** The script loops through all Docker networks and prints out whether each network is currently being used by running or stopped containers.\n- **Default Network Skipping:** It intelligently skips default Docker networks (bridge, host, none) to prevent unnecessary alerts, as these networks are typically used by Docker internally.\n- **Container Listing:** For networks that are in use, the script lists all associated container IDs and names, providing a detailed view of the network's utilization.\n- **jq** Auto-Installation: The script checks if jq (a lightweight and flexible command-line JSON processor) is installed on the system and attempts to install it if it's missing.\n\n\n# Prerequisites\n\n- Docker installed and running on your system\n- Bash shell environment\n- Sudo privileges (if jq is not installed and needs to be automatically installed by the script)\n\n# Usage\n\n1. Clone the repository to your local machine:\n   \n       git clone https://github.com/PKHarsimran/DNCheckBashScript.git\n\n3. Navigate to the cloned directory:\n   \n        cd DNCheckBashScript\n  \n5. Make the script executable:\n\n       chmod +x dncheck.sh\n\n7. Run the script:\n\n       ./dncheck.sh\n\n\n    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkharsimran%2Fdncheckbashscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkharsimran%2Fdncheckbashscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkharsimran%2Fdncheckbashscript/lists"}