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 ---" }