Use ENTRYPOINT instead of CMD to allow running the container with custom args
This commit is contained in:
parent
2a89518aef
commit
f1b5a1132c
2 changed files with 5 additions and 2 deletions
|
@ -7,4 +7,4 @@ COPY docker-net-graph.py Pipfile Pipfile.lock ./
|
||||||
RUN pip install pipenv
|
RUN pip install pipenv
|
||||||
RUN pipenv install --system --deploy
|
RUN pipenv install --system --deploy
|
||||||
|
|
||||||
CMD ["python", "docker-net-graph.py"]
|
ENTRYPOINT ["python", "docker-net-graph.py"]
|
|
@ -5,7 +5,7 @@ as a neat graphviz graph.
|
||||||
|
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
![example graph](example.png)
|
![example graph](https://raw.githubusercontent.com/LeoVerto/docker-network-graph/master/example.png)
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
usage: docker-net-graph.py [-h] [-v] [-o OUT]
|
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.
|
Alternatively, you can use [this website](https://dreampuf.github.io/GraphvizOnline/) for an online version of Graphviz.
|
||||||
The recommended render engine is `fdp`.
|
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.
|
Loading…
Reference in a new issue