From e77887585855327ca452a8aa0df209fdfbb66d82 Mon Sep 17 00:00:00 2001 From: satoru Date: Thu, 7 Aug 2014 14:39:14 +0800 Subject: [PATCH] Make it clear that JSON array format should be used if CMD is used as default arguments Signed-off-by: Xuecong Liao --- docs/sources/reference/builder.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sources/reference/builder.md b/docs/sources/reference/builder.md index 73f48b8248..5788e8167f 100644 --- a/docs/sources/reference/builder.md +++ b/docs/sources/reference/builder.md @@ -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.