Signed-off-by: Doug Davis <dug@us.ibm.com>
| ... | ... |
@@ -182,6 +182,10 @@ commands using a base image that does not contain `/bin/sh`. |
| 182 | 182 |
> passing in the desired shell. For example, |
| 183 | 183 |
> `RUN ["/bin/bash", "-c", "echo hello"]` |
| 184 | 184 |
|
| 185 |
+> **Note**: |
|
| 186 |
+> The *exec* form is parsed as a JSON array, which means that |
|
| 187 |
+> you must use double-quotes (") around words not single-quotes (').
|
|
| 188 |
+ |
|
| 185 | 189 |
The cache for `RUN` instructions isn't invalidated automatically during |
| 186 | 190 |
the next build. The cache for an instruction like `RUN apt-get |
| 187 | 191 |
dist-upgrade -y` will be reused during the next build. The cache for |
| ... | ... |
@@ -219,6 +223,10 @@ instruction as well. |
| 219 | 219 |
> instruction, both the `CMD` and `ENTRYPOINT` instructions should be specified |
| 220 | 220 |
> with the JSON array format. |
| 221 | 221 |
|
| 222 |
+> **Note**: |
|
| 223 |
+> The *exec* form is parsed as a JSON array, which means that |
|
| 224 |
+> you must use double-quotes (") around words not single-quotes (').
|
|
| 225 |
+ |
|
| 222 | 226 |
When used in the shell or exec formats, the `CMD` instruction sets the command |
| 223 | 227 |
to be executed when running the image. |
| 224 | 228 |
|
| ... | ... |
@@ -435,6 +443,10 @@ optional but default, you could use a `CMD` instruction: |
| 435 | 435 |
ENTRYPOINT ["ls"] |
| 436 | 436 |
|
| 437 | 437 |
> **Note**: |
| 438 |
+> The *exec* form is parsed as a JSON array, which means that |
|
| 439 |
+> you must use double-quotes (") around words not single-quotes (').
|
|
| 440 |
+ |
|
| 441 |
+> **Note**: |
|
| 438 | 442 |
> It is preferable to use the JSON array format for specifying |
| 439 | 443 |
> `ENTRYPOINT` instructions. |
| 440 | 444 |
|
| ... | ... |
@@ -449,6 +461,10 @@ string, `VOLUME /var/log`. For more information/examples and mounting |
| 449 | 449 |
instructions via the Docker client, refer to [*Share Directories via Volumes*]( |
| 450 | 450 |
/userguide/dockervolumes/#volume-def) documentation. |
| 451 | 451 |
|
| 452 |
+> **Note**: |
|
| 453 |
+> The list is parsed a JSON array, which means that |
|
| 454 |
+> you must use double-quotes (") around words not single-quotes (').
|
|
| 455 |
+ |
|
| 452 | 456 |
## USER |
| 453 | 457 |
|
| 454 | 458 |
USER daemon |