Replies: 1 comment
-
Hello @TSC21, Haven't tried your exact setup but I had a similar problem a couple of days ago. Docker Composeservices:
ipc_share_container:
image: alpine
command: sleep infinity
container_name: ipc_share_container
ipc: shareable
app1:
image: ...
container_name: app1
depends_on:
- ipc_share_container
ipc: "container:ipc_share_container"
network_mode: host
app2:
image: ...
container_name: app2
depends_on:
- ipc_share_container
ipc: "container:ipc_share_container"
network_mode: host Preserving the same line of thoughts, I think you're problem could be resolved by using a shared network in the Docker containers. Docker Composeservices:
app1:
image: ...
container_name: app1
networks:
- my_app_network
app2:
image: ...
container_name: app2
networks:
- my_app_network
networks:
my_app_network: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello FastDDS team,
I am trying to setup two docker containers in a host, where I want two ROS 2 nodes (one pub and one sub) to use Shared Memory (or even Data Sharing) by default. What I have been seeing so far is that this only works if you set
--ipc host
and--net host
when launching the containers. On my scenario, I don't want to set the network tohost
, since I want to keep a layer of isolation between the containers and the host, but I still want to use shared memory of the host in this case. Is there an XML profile config I can use to achieve this?Right now, if I completely disable UDP as a Transport on the profile, including setting
useBuiltinTransports
to false, the ROS 2 nodes either fail to initialize on the middleware, or I don't get data on the subscriber. The only way I have been seeing this to work is to have the container networks set to host, which of course is not ideal. I wonder if there's a way to trick the middleware to use SHM or Data Sharing even when not in the host, or somehow make it think that it's running on the host.Here's the profile I am using right now (please disregard the UDP config):
Note that I am also setting
RMW_FASTRTPS_USE_QOS_FROM_XML
to1
so to be able to use Zero-Copy.Appreciate your help in advance for this!
Beta Was this translation helpful? Give feedback.
All reactions