From 6b0d3c657fdfb7ab1b6250b0c3f86f747765c8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sun, 29 Sep 2024 19:46:45 +0200 Subject: [PATCH] No more arch restriction on nerdctld Since the release of version 0.6.0 --- cmd/minikube/cmd/docker-env.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/minikube/cmd/docker-env.go b/cmd/minikube/cmd/docker-env.go index 60aca90b1d5f..8a376ea8027d 100644 --- a/cmd/minikube/cmd/docker-env.go +++ b/cmd/minikube/cmd/docker-env.go @@ -25,7 +25,6 @@ import ( "net/url" "os" "os/exec" - "runtime" "strconv" "strings" "time" @@ -309,7 +308,6 @@ docker-cli install instructions: https://minikube.sigs.k8s.io/docs/tutorials/doc exit.Message(reason.EnvMultiConflict, `The docker-env command is incompatible with multi-node clusters. Use the 'registry' add-on: https://minikube.sigs.k8s.io/docs/handbook/registry/`) } cr := co.Config.KubernetesConfig.ContainerRuntime - // nerdctld supports amd64 and arm64 if err := dockerEnvSupported(cr, driverName); err != nil { exit.Message(reason.Usage, err.Error()) } @@ -674,9 +672,6 @@ func tryDockerConnectivity(bin string, ec DockerEnvConfig) ([]byte, error) { } func dockerEnvSupported(containerRuntime, driverName string) error { - if runtime.GOARCH != "amd64" && runtime.GOARCH != "arm64" { - return fmt.Errorf("the docker-env command only supports amd64 & arm64 architectures") - } if containerRuntime != constants.Docker && containerRuntime != constants.Containerd { return fmt.Errorf("the docker-env command only supports the docker and containerd runtimes") }