ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Unfortuantely, --network=host
isn't supported on macOS.
From https://docs.docker.com/network/host/
The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.
You will have to expose each port manually to the host, using -p 80:80
(or -p 8000-9000:8000-9000
for a range of ports) syntax.
If you want containers to talk to each other, you can set up a container network and put multiple containers on the same network, but you won't be able to automatically see all of their ports from your macOS host.