From 307195b3e15cfa6b4f35a2d369c0e36744c0b8c7 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sat, 14 May 2016 01:00:55 +0200 Subject: [PATCH] Merge pull request #22727 from clawconduce/master Fix error for env variables example in docker reference (cherry picked from commit 3723b8840671a5f85c43c9c1df6661f751c312fe) Signed-off-by: Sebastiaan van Stijn --- docs/reference/builder.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/builder.md b/docs/reference/builder.md index 9a2f42ea8b..ae9784bf03 100644 --- a/docs/reference/builder.md +++ b/docs/reference/builder.md @@ -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