-
Notifications
You must be signed in to change notification settings - Fork 4.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
minikube docker-env --unset
requires minikube to be running
#8476
Comments
/kind bug |
This bug is specific to the minikube re-implementation, docker-machine does not have it. docker-machine stop
Stopping "default"...
Machine "default" was stopped.
docker-machine env
Error checking TLS connection: Host is not running
docker-machine env --unset
unset DOCKER_TLS_VERIFY
unset DOCKER_HOST
unset DOCKER_CERT_PATH
unset DOCKER_MACHINE_NAME
# Run this command to configure your shell:
# eval $(docker-machine env --unset) You can see how the set fails (understandable), but the unset still works - when stopped. |
I would like to take this up. Just for clarification, is unsetting the docker vars be independent of whether the docker-machine is running or not? |
@Harkishen-Singh: |
For When using the Basically shell detection need to be moved "higher", so that unset can use it (and exit) And machine loading needs to be moved "lower", so that only set requires it (to run) |
Sure @afbjorklund. Thanks for the additional information. In that case, I am making changes for the |
Very nice! Thank you @Harkishen-Singh ! |
Stopping minikube prevents the helper
minikube docker-env --unset
from working. Since the output of this command doesn't rely on minikube to be running, it doesn't seem like it should require minikube to be running (in fact, it of course makes a lot of sense to run it, if minikube is not running)Steps to reproduce the issue:
Full output of
minikube start
command used, if not already included:NA
The text was updated successfully, but these errors were encountered: