Fix incorrect example in "dockerfile best practices"

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-03-08 00:57:32 +01:00
parent 2ee6341348
commit c6af9fd588
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 3 deletions

View File

@ -541,11 +541,10 @@ FROM alpine
ENV ADMIN_USER="mark"
RUN echo $ADMIN_USER > ./mark
RUN unset ADMIN_USER
CMD sh
```
```bash
$ docker run --rm -it test sh echo $ADMIN_USER
$ docker run --rm test sh -c 'echo $ADMIN_USER'
mark
```
@ -567,7 +566,7 @@ CMD sh
```
```bash
$ docker run --rm -it test sh echo $ADMIN_USER
$ docker run --rm test sh -c 'echo $ADMIN_USER'
```