From 77f65011eb127005ecf0e55731e56b3d82ace320 Mon Sep 17 00:00:00 2001 From: Aanand Prasad Date: Mon, 25 Jul 2016 17:21:23 +0100 Subject: [PATCH] Add note about --entrypoint overriding default command Signed-off-by: Aanand Prasad Upstream-commit: 2b7548f97298565bd57a9c26e4eba3aa6e23f8a5 Component: engine --- components/engine/docs/reference/run.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/engine/docs/reference/run.md b/components/engine/docs/reference/run.md index ae40cf4bc7..4f6e679c9e 100644 --- a/components/engine/docs/reference/run.md +++ b/components/engine/docs/reference/run.md @@ -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 /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) The following `run` command options work with container networking: