Using lima
to create VM on M1 Mac.
brew install lima
lima-x86.yaml
, simulate x86 arch on M1 Mac, and provide docker env to the host.minikube.yaml
, create x86 arch VM, and runminikube
inside.
limactl start <manifest-file>
use --name=default
if you wanna make it as the default VM.
limactl list
limactl shell <vm-instance-name>
docker context create amd64 --docker "host=unix://${HOME}/.lima/lima-x86/sock/docker.sock"
docker docker context use amd64
-
Facing an error like
Error saving credentials: error storing credentials - err: exit status 1, out:
Post "http://ipc/registry/credstore-updated": dial unix /Users/xxx/Library/Containers/com.docker.docker/Data/backend.sock: connect: no such file or directory`Solution: Simply remove
"credStore": "desktop"
from the~/.docker/config.json
.