Using WSL (Windows Subsystem for Linux) Docker, when using mode kubevpn run, can't connect to cluster network, how to solve this problem?
Answer:
This is because WSL's Docker uses Windows's Network, so even if you start a container in WSL, this container will not use WSL network, but use Windows network.
Solutions:
- Install docker in WSL, instead of using Windows Docker-desktop
- Use command
kubevpn connecton Windows, and then startkubevpn runin WSL - Start a container using command
kubevpn connecton Windows, and then startkubevpn run --network container:$CONTAINER_IDin WSL