-
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
Ubuntu: error for minikube cache add images #4438
Comments
Checked the code. Why the logic of return error directly if the driver is none?
// GetSSHHostname returns hostname for use with ssh
func (d *Driver) GetSSHHostname() (string, error) {
return "", fmt.Errorf("driver does not support ssh commands") =====>>> Here
}
// GetSSHPort returns port for use with ssh
func (d *Driver) GetSSHPort() (int, error) {
return 0, fmt.Errorf("driver does not support ssh commands")
} |
Modified minikube code locally and setup password-less to localhost. I workarounded this issue:
|
This can be fixed by switching runner for the none driver, run the load command locally instead of over ssh. It can also skip the copy step. |
Also note that caching is now disabled by default for the |
The exact command to reproduce the issue:
$ minikube cache add ubuntu:16.04
The full output of the command that failed:
$ minikube cache add ubuntu:16.04
💣 Failed to cache and load images: Error creating new ssh host from driver: Error getting ssh host name for driver: driver does not support ssh commands
😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new
The output of the
minikube logs
command:None
The operating system version:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
The text was updated successfully, but these errors were encountered: