Using Docker with ROS (--network=host)

Hello, I am trying to run a docker container (ros:foxy) in my host machine, but I need the network to be set to ‘host’, when I create the container with --network=host I can’t get my host machine to communicate with the docker container. Do I have to change RMW implementation? if yes how should I change it?

Any help is appreciated…

This was solved by changing the RMW_IMPLEMENTATION to rmw_cyclonedds_cpp on the docker-machine which forced the communication to use UDP protocol instead of shared memory.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.