Skip to content

Installing "docker-ros2" for Linux, Mac (and Windows)

Applicable to: Linux, Mac (and Windows) Users

Windows Users

While this should work on Windows machines, it's currently untested so proceed with caution! (and remember that there's always the WSL-ROS2 option)

Acknowledgments

This solution has been put together by Atri Hegde, a COM2009 student from 2024 (and a course demonstrator in 2025!)

Thanks Atri!!

Setup

See here for the docker-ros2 repo and the instructions on how to install it:

https://github.com/hegde-atri/ros2-docker

Launching the ROS Environment

Mac & Linux

Instructions on how to launch the ROS2 docker container are provided in the README, so please consult this for all the details. Essentially though (if you're on a Mac or Linux machine) then you first need to fire up the docker container using:

ros_start

... and once that's done, you need to run the following command to enter the ROS2 environment:

ros_shell

The above assumes that you have already set up your shell appropriately (again see the README).

Windows

The process for Windows users is slightly different.