From f1b5a1132c1ea903fe91ff72ea0e9e9ad8e6c7a9 Mon Sep 17 00:00:00 2001 From: LeoVerto Date: Fri, 31 Aug 2018 21:51:03 +0200 Subject: [PATCH] Use ENTRYPOINT instead of CMD to allow running the container with custom args --- Dockerfile | 2 +- README.md | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 668d19c..f7c48c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ COPY docker-net-graph.py Pipfile Pipfile.lock ./ RUN pip install pipenv RUN pipenv install --system --deploy -CMD ["python", "docker-net-graph.py"] \ No newline at end of file +ENTRYPOINT ["python", "docker-net-graph.py"] \ No newline at end of file diff --git a/README.md b/README.md index 3d7316a..fb64812 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ as a neat graphviz graph. ## Example -![example graph](example.png) +![example graph](https://raw.githubusercontent.com/LeoVerto/docker-network-graph/master/example.png) ## Usage usage: docker-net-graph.py [-h] [-v] [-o OUT] @@ -39,3 +39,6 @@ and finally CTRL+C to generate the file. Alternatively, you can use [this website](https://dreampuf.github.io/GraphvizOnline/) for an online version of Graphviz. The recommended render engine is `fdp`. + +For more advanced use cases you can append arguments to the `docker run` +command as if you were running it in a local shell. \ No newline at end of file