Docker image with ROS 2 Iron Development Environment with Gazebo and RViz2 for various robotics purposes at UNF, club, research, and development. This container contains the initial environment to build and run ROS 2 simulations using Gazebo and RViz2.
docker pull ospreyrobotics/docker-ros2-iron-gz-rviz2:latest
Enable in sshd and restart
sudo nano /etc/ssh/sshd_config
X11Forwarding yes
Enable X server access
sudo xhost +local:docker
sudo xhost +
Inside the container, there is an initial folder /opt/ros_ws/src
that is intended for use for to build the
opsrey_ros
package. This can either be downloaded into the container, or the
recommended local mount, which allows for development using a local IDE.
The following command will open a terminal to the newly created
container that uses the host computers network. It also assumes that the
sources have been downloaded locally in ~/osprey_ros/
and shared as a
volume in the folder inside the container. Inside the container run gazebo
or rviz2
, attach another shell, or run command again to run both.
docker run --net=host --rm -it --env DISPLAY=$DISPLAY --privileged \
-v /dev:/dev -v /projects/osprey_ros/:/opt/ros_ws/src/osprey_ros \
ospreyrobotics/docker-ros2-iron-gz-rviz2:latest