/docker-ros2

Dockerfile to build ROS2 Foxy on top of Ubuntu:20.04.

Primary LanguageDockerfile

Dockerfile to build ROS2 Foxy on top of Ubuntu:20.04.

  1. Clone the repo, build the image:

    git clone https://github.com/devanshdhrafani/docker-ros2.git
    cd docker-ros2
    docker build .
  2. Tag the image:

    docker tag <image-id> <image-tag>
  3. Modify run_ros2.sh , replace dd_ros2 with <image-tag>

  4. Make a container:

    ./run_ros2.sh

Note: You can also directly pull the image from DockerHub. Be sure to update the packages before using.