mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 13:48:06 +00:00
doc: use '--rm' instead of '-rm' for docker command
This commit is contained in:
parent
be532bf2fe
commit
f8553162ca
@ -51,19 +51,19 @@ go get gopkg.in/mikefarah/yq.v2
|
|||||||
Oneshot use:
|
Oneshot use:
|
||||||
|
|
||||||
```bash
|
```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:
|
Run commands interactively:
|
||||||
|
|
||||||
```bash
|
```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:
|
It can be useful to have a bash alias to avoid typing the whole docker command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
alias yq="docker run -rm -v ${PWD}:/workdir mikefarah/yq yq"
|
alias yq="docker run --rm -v ${PWD}:/workdir mikefarah/yq yq"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
Loading…
Reference in New Issue
Block a user