| ... | ... |
@@ -238,9 +238,9 @@ commands using a base image that does not contain `/bin/sh`. |
| 238 | 238 |
> **Note**: |
| 239 | 239 |
> Unlike the *shell* form, the *exec* form does not invoke a command shell. |
| 240 | 240 |
> This means that normal shell processing does not happen. For example, |
| 241 |
-> `CMD [ "echo", "$HOME" ]` will not do variable substitution on `$HOME`. |
|
| 241 |
+> `RUN [ "echo", "$HOME" ]` will not do variable substitution on `$HOME`. |
|
| 242 | 242 |
> If you want shell processing then either use the *shell* form or execute |
| 243 |
-> a shell directly, for example: `CMD [ "sh", "-c", "echo", "$HOME" ]`. |
|
| 243 |
+> a shell directly, for example: `RUN [ "sh", "-c", "echo", "$HOME" ]`. |
|
| 244 | 244 |
|
| 245 | 245 |
The cache for `RUN` instructions isn't invalidated automatically during |
| 246 | 246 |
the next build. The cache for an instruction like |