提交 62683c9b 编写于 作者: D Dean Coakley

Exit with error on podman2 drivers

上级 aaebd882
......@@ -37,9 +37,12 @@ import (
"k8s.io/minikube/pkg/minikube/registry"
)
// minReqPodmanVer is required the mininum version of podman to be installed for podman driver.
// minReqPodmanVer is required the minimum version of podman to be installed for podman driver.
var minReqPodmanVer = semver.Version{Major: 1, Minor: 7, Patch: 0}
// podmanVerTwo is required to exit with an error when podman2 driver is currently installed because it is not supported yet.
var podmanVerTwo = semver.Version{Major: 2, Minor: 0, Patch: 0}
func init() {
priority := registry.Experimental
// Staged rollout for default:
......@@ -107,6 +110,16 @@ func status() registry.State {
glog.Warningf("Warning ! minimum required version for podman is %s. your version is %q. minikube might not work. use at your own risk. To install latest version please see https://podman.io/getting-started/installation.html ", minReqPodmanVer.String(), v.String())
}
if v.GTE(podmanVerTwo) {
return registry.State{
Error: fmt.Errorf("Podman2 is not supported yet"),
Installed: true,
Healthy: false,
Fix: "Install a compatable Podman driver",
Doc: "https://github.com/containers/podman/releases/v1.9.3",
}
}
return registry.State{Installed: true, Healthy: true}
}
......
......@@ -24,6 +24,7 @@ The podman driver is an alternative container runtime to the [Docker]({{< ref "/
## Known Issues
- Podman driver is not supported on non-amd64 architectures such as arm yet. For non-amd64 archs please use [other drivers]({{< ref "/docs/drivers/_index.md" >}})
- Podman2 driver is not supported yet.
- Podman requirements passwordless running of sudo. If you run into an error about sudo, do the following:
```shell
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册