浏览代码

Fix error for env variables example in docker reference

Signed-off-by: Charles Law <claw@conduce.com>
Charles Law 9 年之前
父节点
当前提交
2af7c5cfe2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/builder.md

+ 1 - 1
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,
 > This means that normal shell processing does not happen. For example,
 > `RUN [ "echo", "$HOME" ]` will not do variable substitution on `$HOME`.
 > `RUN [ "echo", "$HOME" ]` will not do variable substitution on `$HOME`.
 > If you want shell processing then either use the *shell* form or execute
 > 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 cache for `RUN` instructions isn't invalidated automatically during
 the next build. The cache for an instruction like
 the next build. The cache for an instruction like