From 41c22f62aba000318cbfead10cb1a60e13f13e1c Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Wed, 7 Sep 2022 16:48:48 +0200 Subject: [PATCH] docker: always restore default context (we need to make that prettier) --- docker.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker.mk b/docker.mk index 21cc42c..4cfddb6 100644 --- a/docker.mk +++ b/docker.mk @@ -1,5 +1,8 @@ -stored_ctx = `docker context ls | grep "\*" | cut -d " " -f1` - +# if want our old context back, we need something like that: +#stored_ctx = `docker context ls | grep "\*" | cut -d " " -f1` + +stored_ctx = 'default' # HACK + create-docker-contexts: @- $(foreach host,$(DEPLOY_HOSTS), \ docker context create $(host) --description "$(host)" --docker "host=ssh://$(SSH_USER)@$(host)"; \