Docker Community Forums

Share and learn in the Docker community.

Overlay network for samba-ad-dc

Hello! I am quite new to Docker, and I am developing an end of degree project, it is based on hosting multiple services in a Docker Swarm, such as a samba-ad-dc, wordpress …
(Although all this takes place on virtual machines like VirtualBox). My question is how to connect my local network of the virtual machine for example:, with the overlay network that has the samba-ad-dc stack for example:
Because if I connect a windows client machine, I want it to be able to connect to samba, so that the user can enter the domain and interact, because this client has the same ip as the virtual machine that contains samba, so it has to go through it to get there to the container. Please, I appreciate your help.