docker-run: add --entrypoint and --network examples (#7208)

This commit is contained in:
Alejandro Bezdjian
2021-11-06 21:18:08 +01:00
committed by GitHub
parent 06cddcfcbe
commit 60bc47a5fb

View File

@@ -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}}`