
Docker Ros2 Development
If you're containerizing ROS2 workspaces, this walks you through multi-stage Dockerfiles that separate dev, build, and runtime concerns, plus docker-compose patterns for multi-container robot stacks. The real value is in the DDS networking troubleshooting (CycloneDDS and FastDDS discovery across containers), GPU passthrough setup for perception nodes, and X11 forwarding for rviz2. It covers the full OSRF image hierarchy so you're not pulling 3GB desktop-full images for production deployments when ros-core would do. Also handles USB device passthrough for cameras and serial hardware, which is always messier than it should be. Good reference if you're moving from bare-metal ROS2 development to containers or setting up CI/CD with colcon builds.
- skills.sh installs
- 155
- GitHub stars
- 400
- last updated
- May 25, 2026
Install
$ npx -y skills add arpitg1304/robotics-agent-skills --skill docker-ros2-development --agent claude-codeInstalls into .claude/skills of the current project.
Files
Docker-Based ROS2 Development Skill
When to Use This Skill
- Writing Dockerfiles for ROS2 workspaces with colcon builds
- Setting up docker-compose for multi-container robotic systems
- Debugging DDS discovery failures between containers (CycloneDDS, FastDDS)
- Configuring GPU passthrough with NVIDIA Container Toolkit for perception nodes
- Forwarding X11 or Wayland displays for rviz2 and rqt tools
- Managing USB device passthrough for cameras, LiDARs, and serial devices
- Building CI/CD pipelines with Docker-based ROS2 builds and test runners
- Creating devcontainer configurations for VS Code with ROS2 extensions
- Optimizing Docker layer caching for colcon workspace builds
- Designing dev-vs-deploy container strategies with multi-stage builds
ROS2 Docker Image Hierarchy
Official OSRF images follow a layered hierarchy. Always choose the smallest base that satisfies dependencies.
Sponsors
Details
- Repository
- github.com/arpitg1304/robotics-agent-skills
- Categories
- DevOps & CI/CD, AI & Agent Building
- License
- Apache-2.0
- First seen
- Jun 11, 2026