Need Help Connecting Docker Containers to Host VMs in an Overlay Network


I have created a cluster on 3 VMs, and each VM contains a Docker container. I have connected the 3 containers from different VMs, which are on the same network, using an overlay network. However, the problem is that I want to establish a connection between the containers and the hosts (VMs), but it doesn’t work. I can’t even ping from the containers to the VMs. What should I do to make the containers accessible from the VMs?

Thank you.