mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-24 14:45:39 +00:00
Added '-rm' docker flag to remove the containers
Also, added a handy alias just in case.
This commit is contained in:
parent
e9b8265ca3
commit
be532bf2fe
10
README.md
10
README.md
@ -51,13 +51,19 @@ go get gopkg.in/mikefarah/yq.v2
|
||||
Oneshot use:
|
||||
|
||||
```bash
|
||||
docker run -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 -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"
|
||||
```
|
||||
|
||||
## Features
|
||||
|
Loading…
Reference in New Issue
Block a user