docker: always restore default context (we need to make that prettier)
This commit is contained in:
parent
80a1a80379
commit
41c22f62ab
|
@ -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)"; \
|
||||
|
|
Loading…
Reference in New Issue