Communication between docker and host

2 posts / 0 new
Last post
Offline
Last seen: 2 years 3 months ago
Joined: 09/19/2021
Posts: 9
Communication between docker and host

hi,

We're currently trying to have a setup where applications on the host are publishing/subscribing to their counterparts running inside the docker container.

Lets take a very simple request/reply example copied from https://community.rti.com/static/documentation/connext-dds/6.0.1/doc/api/connext_dds/api_cpp2/group__RequestReplyExampleModule.html#RequestReplyExampleModule_requester_create

When we run the requester and replier both inside docker or both inside host, things work as expected, as in requester and replier discover each other and send data.

However, when we place the requester in docker and keep the replier on host (or visa-versa), connection between these 2 applications becomes very "unstable", as in sometimes they manage to discover each other, sometimes not.
And sometimes in the middle of execution, data stops arriving to the replier.

We're using RTI COnnext 6.0.1, and we have executed the docker with --network=host and --ipc=host settings.

Is there a special QoS config that we should consider for the docker and host to communicate more seamlessly?

Thanks

PK_RTI's picture
Offline
Last seen: 1 month 2 weeks ago
Joined: 07/01/2021
Posts: 28