Ask Your Question

Docker compose/swarm for multiple remote ROS containers

asked 2020-08-01 00:01:09 -0500

mugetsu gravatar image

updated 2020-08-01 00:01:33 -0500


Does anyone have any experience running ROS on remote docker containers? Currently I have a separate docker image on each remote host that I launch separately. It works fine, but I have heard a little about the magic from Docker compose and swarm and it seemed neater than my hacked tool, which just sends SSH cmds to different hosts.

I see compose combines multiple container launches into one, but does it work for different hosts? Swarm sounds like it would fit the bill, but I haven't been able to find any example on how to do it with ROS.

Appreciate any tips

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-08-12 16:17:18 -0500

ruffsl gravatar image

updated 2020-08-12 16:17:27 -0500

I'd recommend just going through any docker orchestration tutorial, e.g. docker swarm/stacks or even kubernetes if your feeling bold, as starting processes from cluster of docker hosts isn't very ros specific.

One catch may be on how you expose the container to each other via the software define networking bridged across the docker hosts. The simplest avenue would be to ensure any ros related containers on any host are all interfaced to the same virtual network, as port forwarding is of little use with ros.

Note that the software defined network layer may have side effects on your QoS settings, given the transport layer would be wrapped by whatever abstraction swarm or kubernetes is configured to use in securing the virtual network traffic between docker hosts in the cluster.

(Old post, back from 2016)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-08-01 00:01:09 -0500

Seen: 295 times

Last updated: Aug 12 '20