Skip to content

Commit

Permalink
Update bash to use "%%IMAGE%%"
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed May 13, 2017
1 parent ae85a9d commit 703a86f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bash/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 /

Expand Down

0 comments on commit 703a86f

Please sign in to comment.