Docker image with ROS 2 Iron Development Environment for various robotics purposes at UNF, club, research, and development. This container contains the initial base headless environment and minimum packages needed to build and run ROS 2 packages.
docker pull ospreyrobotics/docker-ros2-iron
Inside the container, there is an initial folder /opt/ros_ws/src
that is
intended for use for to build ROS 2 packages. Sources 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.
docker run --net=host --rm -it -v ~/osprey_ros/:/opt/ros_ws/src/osprey_ros ospreyrobotics/docker-ros2-iron:latest
Then, to proceed change to the shared source directory in the container and proceed with building, running, etc.
cd /opt/ros_ws/src