Skip to content

Commit cc316fd

Browse files
committed
Documenting ENTRYPOINT can empty value of CMD
Signed-off-by: Brandon Mitchell <git@bmitch.net>
1 parent f7ea8e8 commit cc316fd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/reference/builder.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,10 @@ The table below shows what command is executed for different `ENTRYPOINT` / `CMD
13391339
| **CMD ["p1_cmd", "p2_cmd"]** | p1_cmd p2_cmd | /bin/sh -c exec_entry p1_entry | exec_entry p1_entry p1_cmd p2_cmd |
13401340
| **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 |
13411341

1342+
> **Note**: If `CMD` is defined from the base image, setting `ENTRYPOINT` will
1343+
> reset `CMD` to an empty value. In this scenario, `CMD` must be defined in the
1344+
> current image to have a value.
1345+
13421346
## VOLUME
13431347

13441348
VOLUME ["/data"]

0 commit comments

Comments
 (0)