Skip to content

Commit 6b0d3c6

Browse files
committedSep 29, 2024
No more arch restriction on nerdctld
Since the release of version 0.6.0
1 parent c50fe68 commit 6b0d3c6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎cmd/minikube/cmd/docker-env.go

-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"net/url"
2626
"os"
2727
"os/exec"
28-
"runtime"
2928
"strconv"
3029
"strings"
3130
"time"
@@ -309,7 +308,6 @@ docker-cli install instructions: https://minikube.sigs.k8s.io/docs/tutorials/doc
309308
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/`)
310309
}
311310
cr := co.Config.KubernetesConfig.ContainerRuntime
312-
// nerdctld supports amd64 and arm64
313311
if err := dockerEnvSupported(cr, driverName); err != nil {
314312
exit.Message(reason.Usage, err.Error())
315313
}
@@ -674,9 +672,6 @@ func tryDockerConnectivity(bin string, ec DockerEnvConfig) ([]byte, error) {
674672
}
675673

676674
func dockerEnvSupported(containerRuntime, driverName string) error {
677-
if runtime.GOARCH != "amd64" && runtime.GOARCH != "arm64" {
678-
return fmt.Errorf("the docker-env command only supports amd64 & arm64 architectures")
679-
}
680675
if containerRuntime != constants.Docker && containerRuntime != constants.Containerd {
681676
return fmt.Errorf("the docker-env command only supports the docker and containerd runtimes")
682677
}

0 commit comments

Comments
 (0)