Hi
I have Docker for Mac running on two different Mac’s on my local network. These machines can access each other through their local ip addresses. I am running the latest release of Docker Desktop on Catalina.
I have seen that there is a way for a container to get access and connect to the hosts ip address through host.docker.internal as detailed here: Explore networking features on Docker Desktop | Docker Docs
I not only want to get access and connect from a container to the hosts IP address but also any other machine on my local network and in particular another Mac running Docker.
I have looked at many of the network options ( using docker swarm, host network, macvlan, overlay) but all of them do not seem to allow this on the Mac version of Docker.
Is there any way for a container running on one of the Mac’s to connect to another Mac on the same local network ?
In the article referenced above it also mentions “You can also reach the gateway using `gateway.docker.internal.” Can I use this to achieve what I want ?
Hoping someone can help and advise.
Cheers