未验证 提交 12122f7d 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #8053 from medyagh/arm64_docker_solution

docker/podman solution message for non-amd64 archs
...@@ -71,6 +71,10 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) { ...@@ -71,6 +71,10 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) {
func status() registry.State { func status() registry.State {
docURL := "https://minikube.sigs.k8s.io/docs/drivers/docker/" docURL := "https://minikube.sigs.k8s.io/docs/drivers/docker/"
if runtime.GOARCH != "amd64" {
return registry.State{Error: fmt.Errorf("docker driver is not supported on %q systems yet", runtime.GOARCH), Installed: false, Healthy: false, Fix: "Try other drivers", Doc: docURL}
}
_, err := exec.LookPath(oci.Docker) _, err := exec.LookPath(oci.Docker)
if err != nil { if err != nil {
return registry.State{Error: err, Installed: false, Healthy: false, Fix: "Install Docker", Doc: docURL} return registry.State{Error: err, Installed: false, Healthy: false, Fix: "Install Docker", Doc: docURL}
......
...@@ -74,6 +74,10 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) { ...@@ -74,6 +74,10 @@ func configure(cc config.ClusterConfig, n config.Node) (interface{}, error) {
func status() registry.State { func status() registry.State {
docURL := "https://minikube.sigs.k8s.io/docs/drivers/podman/" docURL := "https://minikube.sigs.k8s.io/docs/drivers/podman/"
if runtime.GOARCH != "amd64" {
return registry.State{Error: fmt.Errorf("podman driver is not supported on %q systems yet", runtime.GOARCH), Installed: false, Healthy: false, Fix: "Try other drivers", Doc: docURL}
}
podman, err := exec.LookPath(oci.Podman) podman, err := exec.LookPath(oci.Podman)
if err != nil { if err != nil {
return registry.State{Error: err, Installed: false, Healthy: false, Fix: "Install Podman", Doc: docURL} return registry.State{Error: err, Installed: false, Healthy: false, Fix: "Install Podman", Doc: docURL}
......
...@@ -19,6 +19,8 @@ The Docker driver allows you to install Kubernetes into an existing Docker insta ...@@ -19,6 +19,8 @@ The Docker driver allows you to install Kubernetes into an existing Docker insta
## Known Issues ## Known Issues
- Docker driver is not supported on non-amd64 architectures such as arm yet. For non-amd64 archs please use [other drivers]({{< ref "/docs/drivers/" >}}
- On macOS, containers might get hung and require a restart of Docker for Desktop. See [docker/for-mac#1835](https://github.com/docker/for-mac/issues/1835) - On macOS, containers might get hung and require a restart of Docker for Desktop. See [docker/for-mac#1835](https://github.com/docker/for-mac/issues/1835)
- The `ingress`, `ingress-dns` and `registry` addons are currently only supported on Linux. See [#7332](https://github.com/kubernetes/minikube/issues/7332) and [#7535](https://github.com/kubernetes/minikube/issues/7535) - The `ingress`, `ingress-dns` and `registry` addons are currently only supported on Linux. See [#7332](https://github.com/kubernetes/minikube/issues/7332) and [#7535](https://github.com/kubernetes/minikube/issues/7535)
...@@ -28,6 +30,7 @@ The Docker driver allows you to install Kubernetes into an existing Docker insta ...@@ -28,6 +30,7 @@ The Docker driver allows you to install Kubernetes into an existing Docker insta
`sudo mkdir /sys/fs/cgroup/systemd && sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd`. `sudo mkdir /sys/fs/cgroup/systemd && sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd`.
## Troubleshooting ## Troubleshooting
[comment]: <> (this title is used in the docs links, don't change) [comment]: <> (this title is used in the docs links, don't change)
......
## Install Docker ## Requirements
- [Docker](https://hub.docker.com/search?q=&type=edition&offering=community&sort=updated_at&order=desc) - [Install Docker](https://hub.docker.com/search?q=&type=edition&offering=community&sort=updated_at&order=desc)
- amd64 system.
## Usage ## Usage
...@@ -14,3 +15,4 @@ To make docker the default driver: ...@@ -14,3 +15,4 @@ To make docker the default driver:
```shell ```shell
minikube config set driver docker minikube config set driver docker
``` ```
...@@ -11,7 +11,12 @@ aliases: ...@@ -11,7 +11,12 @@ aliases:
This driver is experimental and in active development. Help wanted! This driver is experimental and in active development. Help wanted!
{{% /pageinfo %}} {{% /pageinfo %}}
The podman driver is another kubernetes in container driver for minikube. similar to [docker](https://minikube.sigs.k8s.io/Drivers/docker/) driver. The podman driver is experimental, and only supported on Linux and macOS (with a remote podman server) The podman driver is another kubernetes in container driver for minikube. similar to [docker](https://minikube.sigs.k8s.io/Drivers/docker/) driver. The podman driver is experimental, and only supported on Linux and macOS (with a remote podman server).
## Requirements
- Install [Podman](https://podman.io/getting-started/installation)
- amd64 system
## Try it with CRI-O container runtime. ## Try it with CRI-O container runtime.
...@@ -20,3 +25,6 @@ minikube start --driver=podman --container-runtime=cri-o ...@@ -20,3 +25,6 @@ minikube start --driver=podman --container-runtime=cri-o
``` ```
{{% readfile file="/docs/drivers/includes/podman_usage.inc" %}} {{% readfile file="/docs/drivers/includes/podman_usage.inc" %}}
## 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/" >}}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册