1.1. Can I run an older Kubernetes version with minikube? Do I have to downgrade my minikube version?

You do not need to download an older minikube to run an older kubernetes version. You can create a Kubernetes cluster with any version you desire using --kubernetes-version flag.


minikube start --kubernetes-version=v1.15.0

1.2. How can I create more than one cluster with minikube?

By default, minikube start creates a cluster named "minikube". If you would like to create a different cluster or change its name, you can use the --profile (or -p) flag, which will create a cluster with the specified name. Please note that you can have multiple clusters on the same machine.

To see the list of your current clusters, run:

minikube profile list

minikube profiles are meant to be isolated from one another, with their own settings and drivers. If you want to create a single cluster with multiple nodes, try the multi-node feature instead.

1.3. Can I use minikube as a Docker Desktop replacement?

minikube's VM includes a Docker daemon running inside Linux for free, so you can use minikube docker-env to point your terminal's Docker CLI to the Docker inside minikube.

You would need to start minikube with a VM driver, instead of docker, such as hyperkit on macOS and Hyper-V on Windows.

minikube start --driver=hyperv

Alternatively, you can use minikube image build instead of minikube docker-env and docker build.

1.4. Can I start minikube without Kubernetes running?

Yes! If you want to use minikube only as a Docker Desktop replacement without starting Kubernetes itself, try:

minikube start --no-kubernetes

Alternatively, if you want to temporarily turn off Kubernetes, you can pause and later unpause Kubernetes

minikube pause

minikube also has an addon that automatically pauses Kubernetes after a certain amount of inactivity:

minikube addons enable auto-pause

1.5. Docker Driver: How can I set minikube's cgroup manager?

By default minikube uses the cgroupfs cgroup manager for Kubernetes clusters. If you are on a system with a systemd cgroup manager, this could cause conflicts. To use the systemd cgroup manager, run:

minikube start --force-systemd=true

1.6. How can I run minikube with the Docker driver if I have an existing cluster with a VM driver?

First please ensure your Docker service is running. Then you need to either:

(a) Delete the existing cluster and create a new one

minikube delete
minikube start --driver=docker

Alternatively, (b) Create a second cluster with a different profile name:

minikube start -p p1 --driver=docker

1.7. Does minikube support IPv6?

minikube currently doesn't support IPv6. However, it is on the roadmap. You can also refer to the open issue.

1.8. How can I prevent password prompts on Linux?

The easiest approach is to use the docker driver, as the backend service always runs as root.

none users may want to try CHANGE_MINIKUBE_NONE_USER=true, where kubectl and such will work without sudo. See environment variables for more details.

Alternatively, you can configure sudo to never prompt for commands issued by minikube.

1.9. How can I ignore system verification?

kubeadm, minikube's bootstrapper, verifies a list of features on the host system before installing Kubernetes. In the case you get an error and still want to try minikube despite your system's limitation, you can skip verification by starting minikube with this extra option:

minikube start --extra-config kubeadm.ignore-preflight-errors=SystemVerification

1.10. What is the minimum resource allocation necessary for a Knative setup using minikube?

Please allocate sufficient resources for Knative setup using minikube, especially when running minikube cluster on your local machine. We recommend allocating at least 6 CPUs and 8G memory:

minikube start --cpus 6 --memory 8000

1.11. Do I need to install kubectl locally?

No, minikube comes with a built-in kubectl installation. See minikube's kubectl documentation.

1.12. How can I opt-in to beta release notifications?

Simply run the following command to be enrolled into beta notifications:

minikube config set WantBetaUpdateNotification true

1.13. Can I get rid of the emoji in minikube's output?

Yes! If you prefer not having emoji in your minikube output 😔 , just set the MINIKUBE_IN_STYLE environment variable to 0 or false:

MINIKUBE_IN_STYLE=0 minikube start

1.14. How can I access a minikube cluster from a remote network?

minikube's primary goal is to quickly set up local Kubernetes clusters, and therefore we strongly discourage using minikube in production or for listening to remote traffic. By design, minikube is meant to only listen on the local network.

However, it is possible to configure minikube to listen on a remote network. This will open your network to the outside world and is not recommended. If you are not fully aware of the security implications, please avoid using this.

For the docker and podman driver, use --listen-address flag:

minikube start --listen-address=

1.15. How can I allocate maximum resources to minikube?

Setting the memory and cpus flags on the start command to max will use maximum available resources:

minikube start --memory=max --cpus=max

1.16. How can I run minikube on a different hard drive?

Set the MINIKUBE_HOME env to a path on the drive you want minikube to run, then run minikube start.

# Unix
export MINIKUBE_HOME=/otherdrive/.minikube

# Windows
$env:MINIKUBE_HOME = "D:\.minikube"

minikube start
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2022-01-08 10:04:16

results matching ""

    No results matching ""