-
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
wip: Improved message when docker is not installed for none #7358
Conversation
Welcome @zerefwayne! |
Hi @zerefwayne. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zerefwayne The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/assign @priyawadhwa |
Can one of the admins verify this patch? |
_, err := exec.LookPath("docker") | ||
return err | ||
if _, err := exec.LookPath("docker"); err != nil { | ||
return errors.New("docker not found in $PATH. please install docker or try adding it to the $PATH") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not the right place to add a solution message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you suggest where should I put this message?
As you said the open an issue
shouldn't appear, I'll change the log function from error -> withMessage.
zerefwayne the purpose was of the issue was not to show the failure to create an issue
we dont want to direct ppl to create an issue, when we know what the problem is, this PR instead should check the error if docker is not installed, should exit with a message |
Hey @zerefwayne thanks for opening this PR. You can check if docker is installed in the precreate check for the none driver: https://github.com/kubernetes/minikube/blob/master/pkg/drivers/none/none.go#L82 if you can't find the docker executable, output something like this:
|
Alternative implementation in #7388
|
fixes #7166
before:
after:
This pull request changes the error message from
exec: "docker": executable file not found in $PATH
todocker not found in $PATH. please install docker or try adding it to the $PATH