DDS on Mac not talking between native Mac application and a linux container running in Docker on the same Mac host

1 post / 0 new
Offline
Last seen: 1 year 3 months ago
Joined: 10/22/2018
Posts: 2
DDS on Mac not talking between native Mac application and a linux container running in Docker on the same Mac host

Here is the setup:

  1. MacOS native application running a DDS subscriber
  2. DDS publisher running in a Ubuntu docker container on the same MacOs host
  3. They do not see each other and no information exchange occurs. DDS monitor only sees subscriber, and not publisher

Same scenario transferred to Linux:

  1. Same subscribed recompiled for Ubuntu running on Ubuntu box
  2. Same DDS publisher in a Ubuntu dockecr container running on the same Ubuntu host
  3. Communication flawless with information passed accross the two applications.
  4. Network mode for docker container is set to host

As far as I have learned, Docker does not support host networking on mac and Windows.  You can say "--network:host", but it will not have any effect on Mac or Windows.  I was trying all sorts of combinations like running bridged network and expose ports, etc.  Nothing seems to make a difference.

There has to be a solution to this problem as I have heard people have faced this and solved it in the past, I just cannot figure out how.

There is a post in this forum describing similar problem on Windows, which I think is essentially the same problem.  I do not think there is a good answer there.

Please any help will be appreciated.

Nikita