Docker Community Forums

Share and learn in the Docker community.

Fail to connect to other devices under the same local network with the host (MacOS) from ROS Docker container


Thanks in advance to anyone that may help me with this. I was working on my mac to set up a ROS Docker container that can connect to my robot under the same local network. However, it seems like Docker will somehow create a subnet that is separated from the host (my Mac) so that the ROS in the docker container cannot communicate with robots under the same local network with the host. I have been searching for solutions for a long time and I find out that the official page about the network is missing here:

Has anyone tried this before and succeeded? I can’t image I’m the first one trying to connect to a robot from a ROS Docker container.