'Cannot reach docker container running swarm mode in wsl2

System: Windows 10 host Wsl2, Ubuntu 20 Docker running within WSL2

Config: Docker compose deployed in swarm mode with an overlay network. All ports exposed.

Problem:

I cannot reach my container ( Kibana ) from my windows host ( timeout error ) When i run firefox within wsl via xserv, I can reach it.

When I deploy a compose file not in swarm mode, I can reach the container from my windows host. I checked the ip v4 addresses of the network and containers but I can't reach any entpoint.

So it seems to be a problem with the overlay network mapping to my host system. I also tried the ip of the auto generated gw_bridge network with no success.

Is there any further configuration that reach the network / endpoint from my windows hosts browser?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source