-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"docker context use" appears to have no effect #1809
Comments
Hi this is by design: for compatibility with existing scripts, if DOCKER_HOST environment variable is set, we ignore the current context setting. |
So just unset your variable or use the |
Thanks @simonferquel , those both worked. Seems non-intuitive to override with DOCKER_HOST when the default specifies is it based on DOCKER_HOST. Perhaps a warning can be added somewhere, e.g. when specifying
|
I see the warning message in 19.03.0-beta2. Thank you so much for the fast turn around! |
Description
I'm giving 19.03.0-beta1 a spin and trying to use the fast context switcher from PR #1501 with no luck.
Steps to reproduce the issue:
Current environment configured with:
Start a DinD instance on 22375:
Define a new context:
List the context:
Try to switch context:
Describe the results you received:
At that point, there is still a "*" after the default context in the list, and all docker commands continue to operate on my 2376 instance of docker rather than the 22375 instance.
Describe the results you expected:
Commands should run against 22375.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Physical, Linux on the laptop.
The text was updated successfully, but these errors were encountered: