fix README
This commit is contained in:
parent
c0035c2b89
commit
56ee3e242f
1 changed files with 5 additions and 2 deletions
|
@ -29,19 +29,22 @@ Changes:
|
||||||
If you want to generate a graph for a remote system you can also easily
|
If you want to generate a graph for a remote system you can also easily
|
||||||
run this script inside a pre-built docker container:
|
run this script inside a pre-built docker container:
|
||||||
|
|
||||||
```bash
|
|
||||||
build 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
|
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
|
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`
|
For more advanced use cases you can append arguments to the `docker run`
|
||||||
|
|
Loading…
Reference in a new issue