doc: use '--rm' instead of '-rm' for docker command

This commit is contained in:
Arnaud Deprez 2019-07-02 12:17:35 +00:00 committed by GitHub
parent be532bf2fe
commit f8553162ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,19 +51,19 @@ go get gopkg.in/mikefarah/yq.v2
Oneshot use:
```bash
docker run -rm -v ${PWD}:/workdir mikefarah/yq yq [flags] <command> FILE...
docker run --rm -v ${PWD}:/workdir mikefarah/yq yq [flags] <command> FILE...
```
Run commands interactively:
```bash
docker run -rm -it -v ${PWD}:/workdir mikefarah/yq sh
docker run --rm -it -v ${PWD}:/workdir mikefarah/yq sh
```
It can be useful to have a bash alias to avoid typing the whole docker command:
```bash
alias yq="docker run -rm -v ${PWD}:/workdir mikefarah/yq yq"
alias yq="docker run --rm -v ${PWD}:/workdir mikefarah/yq yq"
```
## Features