From 91999ec9b57a0edfc7befb01724f38391b3163d0 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Fri, 15 Jul 2022 22:49:40 +0200 Subject: [PATCH] swarm: use context --- docker.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker.mk b/docker.mk index 0292236..2f1ce84 100644 --- a/docker.mk +++ b/docker.mk @@ -42,7 +42,7 @@ start-compose: start-swarm: @- echo "\n### starting service(s)" @- $(foreach ctx,$(DEPLOY_HOSTS), \ - docker stack deploy -c stack.yml $(DEPLOY_NAME); \ + docker --context $(ctx) stack deploy -c stack.yml $(DEPLOY_NAME); \ ) stop-compose: @@ -55,7 +55,7 @@ stop-compose: stop-swarm: @- echo "\n### stopping service(s)" @- $(foreach ctx,$(DEPLOY_HOSTS), \ - docker stack rm $(DEPLOY_NAME); \ + docker --context $(ctx) stack rm $(DEPLOY_NAME); \ ) logs-compose: