diff --git a/README.md b/README.md index 3396f95..89e779a 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Changes: - Improved design - Added the ability to generate url - Added display of connections with the host +- Github package ## Example ![example graph](./example.png) diff --git a/docker-network-graph.py b/docker-network-graph.py index 9e4f530..6606e7e 100755 --- a/docker-network-graph.py +++ b/docker-network-graph.py @@ -194,10 +194,18 @@ def draw_container(g: Graph, c: Container): def draw_link(g: Graph, networks: typing.Dict[str, Network], link: Link): + if networks[link.network_name].isolated: + style="dashed" + elif networks[link.network_name].name == "host": + style="bold" + else: + style="solid" + g.edge( f"container_{link.container_id}:{link.endpoint_id}", f"network_{link.network_name}", color=networks[link.network_name].color, + style=style, )