Development Docker Containers
This repo contains Dockerfiles that are handy for ros and gazebo development.
colcon and vcstool are recommended too.
Docker Images requireing nvidia-docker2
# Build the base image to create `developer` user with your user id ./build.bash devbase-xenial # Build image with gazebo9 binary installation ./build.bash gz9 # Create a temporary container from the image ./run.bash gz9 # Now inside docker container gazebo --verbose
docker build that passes the current user id as a build argument.
docker run that sets up useful stuff:
X server for GUI
settings for running gdb
./run.bash image-name some/file/path some/other/file/path ...
These are based off of nvidia images with beta support for opengl using nvidia-docker2.
Each provides a different ubuntu version.
All have a user named
developer with NOPASSWD sudo access and a user id matching the user outside the container.
You must build these images on your local machine using
./build.bash devbase-bionic etc.
The images also have other tools I find useful (colcon, python3-venv, cmake, gdb, ...).
Gazebo from source images
These images come with dependencies needed to build sdformat, ignition, and gazebo libraries. The expectation is that the full stack (sdformat, ign-..., gazebo) will be built from source. I use a combination of vcstool and colcon to do this.
Gazebo binary images
These images contain gazebo as installed from
ROS2 from source images
Image for building ros2 completely from source.
ROS 1 binary images
- ROS Melodic (desktop full) on Ubuntu Bionic (18.04) with Gazebo 9 from
There are a lot of other images in this repo. Most are not usable with because they have not been ported from nvidia-docker1 yet.
Inspired by scpeters gazebo8-docker