Signed-off-by: Xuecong Liao <satorulogic@gmail.com>
| ... | ... |
@@ -196,6 +196,11 @@ container.** These defaults can include an executable, or they can omit |
| 196 | 196 |
the executable, in which case you must specify an `ENTRYPOINT` |
| 197 | 197 |
instruction as well. |
| 198 | 198 |
|
| 199 |
+> **Note**: |
|
| 200 |
+> If `CMD` is used to provide default arguments for the `ENTRYPOINT` |
|
| 201 |
+> instruction, both the `CMD` and `ENTRYPOINT` instructions should be specified |
|
| 202 |
+> with the JSON array format. |
|
| 203 |
+ |
|
| 199 | 204 |
When used in the shell or exec formats, the `CMD` instruction sets the command |
| 200 | 205 |
to be executed when running the image. |
| 201 | 206 |
|