We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7ea8e8 + cc316fd commit 422baf6Copy full SHA for 422baf6
1 file changed
docs/reference/builder.md
@@ -1339,6 +1339,10 @@ The table below shows what command is executed for different `ENTRYPOINT` / `CMD
1339
| **CMD ["p1_cmd", "p2_cmd"]** | p1_cmd p2_cmd | /bin/sh -c exec_entry p1_entry | exec_entry p1_entry p1_cmd p2_cmd |
1340
| **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 |
1341
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
+
1346
## VOLUME
1347
1348
VOLUME ["/data"]
0 commit comments