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

Fix error for env variables example in docker reference

Signed-off-by: Charles Law <claw@conduce.com>
This commit is contained in:
Charles Law 2016-05-13 10:55:36 -07:00
parent a213a446d7
commit 2af7c5cfe2

View file

@ -361,7 +361,7 @@ RUN /bin/bash -c 'source $HOME/.bashrc ; echo $HOME'
> This means that normal shell processing does not happen. For example,
> `RUN [ "echo", "$HOME" ]` will not do variable substitution on `$HOME`.
> If you want shell processing then either use the *shell* form or execute
> a shell directly, for example: `RUN [ "sh", "-c", "echo", "$HOME" ]`.
> a shell directly, for example: `RUN [ "sh", "-c", "echo $HOME" ]`.
The cache for `RUN` instructions isn't invalidated automatically during
the next build. The cache for an instruction like