Dockerfile to build ROS2 Foxy on top of Ubuntu:20.04.
-
Clone the repo, build the image:
git clone https://github.com/devanshdhrafani/docker-ros2.git cd docker-ros2 docker build .
-
Tag the image:
docker tag <image-id> <image-tag>
-
Modify
run_ros2.sh
, replacedd_ros2
with<image-tag>
-
Make a container:
./run_ros2.sh
Note: You can also directly pull the image from DockerHub. Be sure to update the packages before using.