-
Notifications
You must be signed in to change notification settings - Fork 670
Conversation
@bboreham would appreciate some feedback here on what this does and how it does it. Possible point of contention...
|
exec_remote "$@" | ||
exit $? | ||
fi | ||
|
||
shift 1 | ||
if [ "$1" = "env" -a "$2" = "--restore" ] ; then |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
`weave env` stashes the existing DOCKER_HOST in ORIG_DOCKER_HOST, and `weave env --restore` sets DOCKER_HOST to $ORIG_DOCKER_HOST. Closes #1288.
When |
@bboreham I think this is ready modulo docs and squashing. Would appreciate some feedback first. |
The implementation lgtm. I am unclear how prevalent the set-up is where setting |
The new command also works in situations where |
Umm. This wasn't ready to merge. Still needs docs! |
weave env
stashes the existing DOCKER_HOST in ORIG_DOCKER_HOST, andweave env --restore
sets DOCKER_HOST to $ORIG_DOCKER_HOST.Note that
weave env --restore
always executes locally, which means it will work when the env has a 'broken' DOCKER_HOST.Closes #1288.