From cc316fde5583e1c80a813f3a0db543ea33e7d5fc Mon Sep 17 00:00:00 2001 From: Brandon Mitchell Date: Sat, 17 Nov 2018 10:10:15 -0500 Subject: [PATCH] Documenting ENTRYPOINT can empty value of CMD Signed-off-by: Brandon Mitchell --- docs/reference/builder.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 88a51fb59d..644ad91f5e 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -1339,6 +1339,10 @@ The table below shows what command is executed for different `ENTRYPOINT` / `CMD | **CMD ["p1_cmd", "p2_cmd"]** | p1_cmd p2_cmd | /bin/sh -c exec_entry p1_entry | exec_entry p1_entry p1_cmd p2_cmd | | **CMD exec_cmd p1_cmd** | /bin/sh -c exec_cmd p1_cmd | /bin/sh -c exec_entry p1_entry | exec_entry p1_entry /bin/sh -c exec_cmd p1_cmd | +> **Note**: If `CMD` is defined from the base image, setting `ENTRYPOINT` will +> reset `CMD` to an empty value. In this scenario, `CMD` must be defined in the +> current image to have a value. + ## VOLUME VOLUME ["/data"]