kubernetes/minikube
View on GitHubMinikube assumes remote docker host is same arch as local machine
Open
#13,303 opened on Jan 6, 2022
co/docker-driverhelp wantedkind/buglifecycle/frozenpriority/important-longterm
Description
What Happened?
I'm using a MacOS ARM64 ("apple silicon") laptop as my dev machine, but I do builds on a remote Docker Linux AMD64 host using DOCKER_HOST="tcp://192.168.1.44". If I create the minikube-in-docker while sshed into the Linux machine, minikube installs an AMD64 docker build. However, if I try to minikube start from my Mac initially, while it pulls an x86_64 docker image, the kubeadm and kubectl binaries in /var/lib/minikube/binaries/v1.22.3/kubeadm are NOT x86_64 but arm64, which won't run on my AMD64 docker host (it gets wrongly sniffed as a shell script and fails to run, but see below its an ELF just wrong architecture).
root@minikube:/var/lib/minikube/binaries/v1.22.3# file kubeadm
kubeadm: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=Ix-qGg0m4Y1_wbf6TIrB/IthoOfPXT3QgQ194kYq7/518O26hpL0jI16q3MMZ0/cj371ZbZEp94cJXf24Pn, stripped
Attach the log file
Operating System
macOS (Default)
Driver
Docker