From 1c437714001b86d9f2e74a0c87439d2835b397f0 Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Fri, 25 Sep 2020 23:54:12 +0200 Subject: [PATCH] Fix docker argument order Fixes #5 --- plugin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.sh b/plugin.sh index 3141f47..154d1dc 100755 --- a/plugin.sh +++ b/plugin.sh @@ -76,7 +76,7 @@ run_cleanup() { until [ -z "$(docker stack ps "$PLUGIN_STACK" -q)" ]; do sleep 1; done docker -H "$DOCKER_HOST" system prune --all --volumes --force # try and remove all secrets; Docker will leave ones which are in use - docker -H "$DOCKER_HOST" secret ls --format '{{ .Name }}' | xargs -i sh -c "echo {}; docker secret -H \"$DOCKER_HOST\" rm {} || true" + docker -H "$DOCKER_HOST" secret ls --format '{{ .Name }}' | xargs -i sh -c "echo {}; docker -H \"$DOCKER_HOST\" secret rm {} || true" echo "--- end cleanup ---" }