Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jakoberpf/97b2bdc2590a8ac820d83b26bc81b33c to your computer and use it in GitHub Desktop.
Save jakoberpf/97b2bdc2590a8ac820d83b26bc81b33c to your computer and use it in GitHub Desktop.
how to fix minikube start docker network issue on macOS M1

[troubleshooting] macOS M1 minikube network issue

When starting minikube, we see a docker network related error.

Issue

$ minikube start
πŸ˜„  minikube v1.24.0 auf Darwin 12.0.1 (arm64)
✨  Automatically selected the docker driver
πŸ‘  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
πŸ”₯  Creating docker container (CPUs=2, Memory=4000MB) ...\ E0118 09:10:49.075699   83479 network_create.go:85] failed to find free subnet for docker network minikube after 20 attempts: no free private network subnets found with given parameters (start: "192.168.9.0", step: 9, tries: 20)

❗  Unable to create dedicated network, this might result in cluster IP change after restart: un-retryable: no free private network subnets found with given parameters (start: "192.168.9.0", step: 9, tries: 20)
🐳  Vorbereiten von Kubernetes v1.22.3 auf Docker 20.10.8...
    β–ͺ Generating certificates and keys ...
    β–ͺ Booting up control plane ...
    β–ͺ Configuring RBAC rules ...
πŸ”Ž  Verifying Kubernetes components...
    β–ͺ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
πŸ„  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

Solution

docker network create --subnet 192.168.9.0/24 --driver bridge minikube
minikube start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment