1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #7460 from suzaku/fix_docs

Make it clear that JSON array format should be used if CMD is used as default arguments
This commit is contained in:
Sven Dowideit 2014-08-08 12:10:01 +10:00
commit 0ca010695c

View file

@ -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`
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
to be executed when running the image.