{"id":13688771,"url":"https://github.com/LeoVerto/docker-network-graph","last_synced_at":"2025-05-01T20:30:47.658Z","repository":{"id":40466412,"uuid":"146825993","full_name":"LeoVerto/docker-network-graph","owner":"LeoVerto","description":"Quickly visualize docker networks with graphviz.","archived":false,"fork":true,"pushed_at":"2024-03-20T07:08:56.000Z","size":147,"stargazers_count":84,"open_issues_count":15,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-12T12:48:44.562Z","etag":null,"topics":["devops-tools","docker","graph","graphviz","network-visualization","python","visualization"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/leoverto/docker-network-graph/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"eagafonov/docker-network-graph-poc","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeoVerto.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}},"created_at":"2018-08-31T01:33:58.000Z","updated_at":"2024-11-11T11:04:45.000Z","dependencies_parsed_at":"2023-02-16T19:45:32.834Z","dependency_job_id":null,"html_url":"https://github.com/LeoVerto/docker-network-graph","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Fdocker-network-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Fdocker-network-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Fdocker-network-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeoVerto%2Fdocker-network-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeoVerto","download_url":"https://codeload.github.com/LeoVerto/docker-network-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251940484,"owners_count":21668544,"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":["devops-tools","docker","graph","graphviz","network-visualization","python","visualization"],"created_at":"2024-08-02T15:01:22.294Z","updated_at":"2025-05-01T20:30:47.653Z","avatar_url":"https://github.com/LeoVerto.png","language":"Python","funding_links":[],"categories":["docker"],"sub_categories":[],"readme":"# Docker Network Graph\n\nVisualize the relationship between Docker networks and containers\nas a neat graphviz graph.\n\n\n## Example\n![example graph](https://raw.githubusercontent.com/LeoVerto/docker-network-graph/master/example.png)\n\n## Usage\n    usage: docker-net-graph.py [-h] [-v] [-o OUT]\n\n    Visualize docker networks.\n    \n    optional arguments:\n      -h, --help         show this help message and exit\n      -v, --verbose      Verbose output\n      -o OUT, --out OUT  Write output to file\n\nIn most cases what you want to run are the following couple commands:\n\n    git clone https://github.com/LeoVerto/docker-network-graph.git\n    cd docker-network-graph\n    pipenv install\n    pipenv run python docker-net-graph.py -o output.svg\n\nThis will generate an .svg file containing the graph.\n\n## Running inside docker\nIf you want to generate a graph for a remote system you can also easily\nrun this script inside a pre-built docker container:\n    \n    docker run --rm -v /var/run/docker.sock:/var/run/docker.sock leoverto/docker-network-graph\n\nThis will just generate and output the graph in the [DOT Language][dot].\nYou can then paste that code into [GraphvizOnline][gvonline]\nto render it. The recommended rendering engine is `fdp`.\n\nAlternatively, if you prefer to render locally, you can run\n`fdp -Tpng -o out.png` on a system with graphviz installed,\npaste the previous output there, press enter and finally CTRL+C to\ngenerate the file.\n\n\nFor more advanced use cases you can append arguments to the `docker run`\ncommand as if you were running it in a local shell.\n\n[dot]: https://www.graphviz.org/doc/info/lang.html\n[gvonline]: https://dreampuf.github.io/GraphvizOnline/\n\n## Development\nIf you'd like to contribute to this project, there is a sample docker-compose file\nusing dummy containers in `test`.\n\nYou can deploy it using `docker-compose -f test/docker-compose.yml up -d`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeoVerto%2Fdocker-network-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeoVerto%2Fdocker-network-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeoVerto%2Fdocker-network-graph/lists"}