Add note about --entrypoint overriding default command

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-07-25 17:21:23 +01:00 committed by Tibor Vass
parent d41421140c
commit 897dc90656
1 changed files with 3 additions and 0 deletions

View File

@ -1305,6 +1305,9 @@ or two examples of how to pass more parameters to that ENTRYPOINT:
$ docker run -it --entrypoint /bin/bash example/redis -c ls -l $ docker run -it --entrypoint /bin/bash example/redis -c ls -l
$ docker run -it --entrypoint /usr/bin/redis-cli example/redis --help $ docker run -it --entrypoint /usr/bin/redis-cli example/redis --help
> **Note**: Passing `--entrypoint` will clear out any default command set on the
> image (i.e. any `CMD` instruction in the Dockerfile used to build it).
### EXPOSE (incoming ports) ### EXPOSE (incoming ports)
The following `run` command options work with container networking: The following `run` command options work with container networking: