This rep provides docker images and docker-compose files for quickly setting up ROS2, Gazebo and other Robot related softwares on docker.
- Edit the required Dockerfiles to prebuild required softwares into the images
- Compiled project binaries are stored in Docker Volumes and survive container restarts
- Customize virtual network interfaces for testing and real world deployments
- Install Docker CE and docker-compose
- Add your user to docker group Link.
- Edit /etc/docker/daemon.json to contain the following
{ "dns": [<dns-1>, <dns-2>], "insecure-registries": [<insecure local docker hub ip:port>] }
- Restart docker
sudo service docker restart
- install xorg-server-utils for GUI applications. This varies between different OSs
Map the docker user to the local XORG group
xhost local:docker
- Pull image
docker pull <local-hub-ip>:<port>/<ros2>
or build image locally by cd'ing to this repo folderdocker-compose build
- Start the container
docker-compose up -d
- Exec to the container as user ros
docker exec -it -u ros ros2_ws_ros2_1 /bin/bash
cd /opt/ros2_ws