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

feature/windows-fix-syntax-2
Alejandro Bezdjian 2021-11-06 21:18:08 +01:00 committed by GitHub
parent 06cddcfcbe
commit 60bc47a5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

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