mirror of https://github.com/docker/docs.git
Make it clear that JSON array format should be used if CMD is used as default arguments
Signed-off-by: Xuecong Liao <satorulogic@gmail.com>
This commit is contained in:
parent
e20a95f24c
commit
6e0f072e36
|
@ -196,6 +196,11 @@ container.** These defaults can include an executable, or they can omit
|
||||||
the executable, in which case you must specify an `ENTRYPOINT`
|
the executable, in which case you must specify an `ENTRYPOINT`
|
||||||
instruction as well.
|
instruction as well.
|
||||||
|
|
||||||
|
> **Note**:
|
||||||
|
> If `CMD` is used to provide default arguments for the `ENTRYPOINT`
|
||||||
|
> instruction, both the `CMD` and `ENTRYPOINT` instructions should be specified
|
||||||
|
> with the JSON array format.
|
||||||
|
|
||||||
When used in the shell or exec formats, the `CMD` instruction sets the command
|
When used in the shell or exec formats, the `CMD` instruction sets the command
|
||||||
to be executed when running the image.
|
to be executed when running the image.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue