mirror of https://github.com/CrimsonTome/tldr.git
docker-run: add --entrypoint and --network examples (#7208)
parent
06cddcfcbe
commit
60bc47a5fb
|
@ -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…
Reference in New Issue