From 56ee3e242f9a788154e8686e8c7106e8662d7679 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 19 Mar 2024 21:50:03 +0100 Subject: [PATCH] fix README --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7af7902..b9d7d62 100644 --- a/README.md +++ b/README.md @@ -29,19 +29,22 @@ Changes: If you want to generate a graph for a remote system you can also easily run this script inside a pre-built docker container: -```bash build container +```bash docker build . -t code.brothertec.eu/simono41/docker-network-graph:latest +``` and create a PNG +```bash docker run --rm -v /var/run/docker.sock:/var/run/docker.sock code.brothertec.eu/simono41/docker-network-graph:latest | dot -Tpng -o out.png +``` or as SVG +```bash docker run --rm -v /var/run/docker.sock:/var/run/docker.sock code.brothertec.eu/simono41/docker-network-graph:latest | dot -Tsvg -o out.svg - ``` For more advanced use cases you can append arguments to the `docker run`