fix README

This commit is contained in:
Simon Rieger 2024-03-19 21:50:55 +01:00
parent 56ee3e242f
commit 616572fab8

View file

@ -32,19 +32,19 @@ run this script inside a pre-built docker container:
build container
```bash
docker build . -t code.brothertec.eu/simono41/docker-network-graph:latest
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
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
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`