mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 05:35:24 +02:00
docker-run: add --entrypoint and --network examples (#7208)
This commit is contained in:
parent
06cddcfcbe
commit
60bc47a5fb
1 changed files with 8 additions and 0 deletions
|
@ -26,3 +26,11 @@
|
|||
- Run command in a new container with published ports:
|
||||
|
||||
`docker run -p {{host_port}}:{{container_port}} {{image}} {{command}}`
|
||||
|
||||
- Run command in a new container overwriting the entrypoint of the image:
|
||||
|
||||
`docker run --entrypoint {{command}} {{image}}`
|
||||
|
||||
- Run command in a new container connecting it to a network:
|
||||
|
||||
`docker run --network {{network}} {{image}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue