How to connect to a kubernetes cluster that is inside of a docker container?
While you are running a container linked to your PC/Server Docker, the Kind Kubernetes port is available on your PC/Server not on the container.
So if you run kubectl commands from your machine it will work (including the kubeconfig).
Solution: Using --network=&quot;host&quot; in your docker command, the container will act as your localhost (eg. docker run --network=&quot;host&quot; -v /var/run/docker.sock:/var/run/docker.sock -it ef33f1a0ac5e bash