浏览代码

Update bash to use "%%IMAGE%%"

Tianon Gravi 8 年之前
父节点
当前提交
703a86f9d0
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      bash/content.md

+ 4 - 4
bash/content.md

@@ -21,7 +21,7 @@ There are a few main things that are important to note regarding this image:
 ## Interactive shell
 
 ```console
-$ docker run -it --rm bash:4.4
+$ docker run -it --rm %%IMAGE%%:4.4
 bash-4.4# which bash
 /usr/local/bin/bash
 bash-4.4# echo $BASH_VERSION
@@ -31,16 +31,16 @@ bash-4.4# echo $BASH_VERSION
 ## Testing scripts via bind-mount
 
 ```console
-$ docker run -it --rm -v /path/to/script.sh:/script.sh:ro bash:4.4 bash /script.sh
+$ docker run -it --rm -v /path/to/script.sh:/script.sh:ro %%IMAGE%%:4.4 bash /script.sh
 ...
-$ docker run -it --rm -v /path/to/script.sh:/script.sh:ro bash:3.2 bash /script.sh
+$ docker run -it --rm -v /path/to/script.sh:/script.sh:ro %%IMAGE%%:3.2 bash /script.sh
 ...
 ```
 
 ## Testing scripts via `Dockerfile`
 
 ```dockerfile
-FROM bash:4.4
+FROM %%IMAGE%%:4.4
 
 COPY script.sh /