ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Is there any docker containers for ROS?

asked 2013-11-06 01:47:39 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Is there any docker containers for ROS? I googled but didn't find anything. If there is no containers what is the best way to start building one and share with you guys?

Thanks!

edit retag flag offensive close merge delete

Comments

Its not that hard to set up ROS in a docker container. The problem is that it doesn't work very well, due to networking issues: ROS and Docker clash over how they want to do networking. A long, detailed analysis is here: https://github.com/opencog/docker/tre... (about half-way down).

linas gravatar image linas  ( 2016-02-20 13:21:34 -0600 )edit

5 Answers

Sort by ยป oldest newest most voted
2

answered 2013-11-07 14:14:25 -0600

jbinney gravatar image

I've made a basic Dockerfile which installs ROS hydro on top of the ubuntu precise image:

https://gist.github.com/jonbinney/7365141

You can remove the vnc stuff if you don't want to be able to see GUI apps. I'm still working out how to handle networking, for instance exposing the right ports for ROS publishers.

edit flag offensive delete link more

Comments

So... have you been successful figuring out how to expose the dynamic node ports?

Hendrik Wiese gravatar image Hendrik Wiese  ( 2016-07-29 10:18:04 -0600 )edit
6

answered 2015-10-06 14:17:51 -0600

ruffsl gravatar image

updated 2015-10-06 14:21:28 -0600

This is an old question, but for those who may stumble across this, there are now official ROS [1] and Gazebo [2] Docker images available on Docker Hub.

You can pull the latest LTS version of ROS via:
docker pull ros
as well as the latest release of Gazebo similarly:
docker pull gazebo

Please check the full description provided on the respective Docker Hub repo pages for further details.
1 hub.docker.com/_/ros
2 hub.docker.com/_/gazebo

edit flag offensive delete link more
1

answered 2014-09-04 09:53:49 -0600

Oleg gravatar image

I've made the container with vnc and web view for vnc. It installs ros indigo base on top of ubuntu 14.04 trusty, mount and configures workspace, launches vnc server. If someone wants ros desktop full, just fix the line in the Dockerfile.

https://github.com/osblinnikov/rosDocker

edit flag offensive delete link more
0

answered 2018-01-25 15:38:00 -0600

thinwybk gravatar image

updated 2018-01-25 15:39:40 -0600

There have been recently released the official ROS2 docker images for ROS2 Ardent which can be found on hub.docker.com, refer to the post on discourse.ros.org.

edit flag offensive delete link more
0

answered 2013-11-07 23:06:45 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Thank you jbinney! I'm also confused by exposing dynamic ports. In how-to-assign-a-port-mapping-to-an-existing-docker-container thread on stackoverflow I've learned about Pipework but still don't know how to fit it to our use case.

edit flag offensive delete link more

Comments

pipework looks promising. i'm also playing around with writing a little xmlrpc server which sits in between the ros nodes and the ros master, and uses IP tables to expose ports on the fly as ros nodes open connections. it'd be nice to avoid that extra process in the loop though.

jbinney gravatar image jbinney  ( 2013-11-08 08:23:27 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2013-11-06 01:47:39 -0600

Seen: 3,235 times

Last updated: Jan 25 '18