From f8553162ca7494ea58c12f2dcdf8ef31ad58342f Mon Sep 17 00:00:00 2001 From: Arnaud Deprez Date: Tue, 2 Jul 2019 12:17:35 +0000 Subject: [PATCH] doc: use '--rm' instead of '-rm' for docker command --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26af3ff2..e6a5d13d 100644 --- a/README.md +++ b/README.md @@ -51,19 +51,19 @@ go get gopkg.in/mikefarah/yq.v2 Oneshot use: ```bash -docker run -rm -v ${PWD}:/workdir mikefarah/yq yq [flags] FILE... +docker run --rm -v ${PWD}:/workdir mikefarah/yq yq [flags] 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