Skip to content

Commit

Permalink
Merge pull request #1523 from sudo-bmitch/pr-doc-cmd-entrypoint
Browse files Browse the repository at this point in the history
Documenting ENTRYPOINT can empty value of CMD
  • Loading branch information
silvin-lubecki authored Nov 20, 2018
2 parents f7ea8e8 + cc316fd commit 422baf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/reference/builder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 422baf6

Please sign in to comment.