dazzed
dazzed

Reputation: 669

Can't start minikube inside docker network

I'm trying to start minikube on ubuntu 18.04 inside nginx proxy manager docker network in order to setup some kubernetes services and manage the domain names and the proxy hosts in the nginx proxy manager platform.

so I have nginxproxymanager_default docker network and when I run minikube start --network=nginxproxymanager_default I get

Exiting due to GUEST_PROVISION: Failed to start host: can't create with that IP, address already in use

what might I been doing wrong?

Upvotes: -1

Views: 1456

Answers (2)

mxn
mxn

Reputation: 121

If you used minikube with docker driver and you created for example a network called minikube, then check this docker network first with docker network inspect minikube. There might be a container listed with docker ps -a still using this network. If you stop this container with docker container stop CONTAINER-NAME and rerun minikube start --driver=docker it will spin up the minikube node again.

Upvotes: 0

VonC
VonC

Reputation: 1329712

A similar error was reported with kubernetes/minikube issue 12894

please check whether there are other services using that IP address, and try starting minikube again.

Considering minikube start man page

--network string

network to run minikube with.
Now it is used by docker/podman and KVM drivers.

If left empty, minikube will create a new network.

Using an existing NGiNX network (as opposed to docker/podman) might not be supported.

I have seen NGiNX set up as ingress, not directly as "network".

Upvotes: 1

Related Questions