Ready-to-use ROS2 Humble development environment with GUI support.
- Start the environment
cd docker_ws docker compose up -d
If you started with docker compose up (without -d), you can stop with Ctrl+C.
To stop containers but keep them for later:
docker compose stopTo restart stopped containers:
docker compose startTo completely stop and remove containers (environment will be lost):
docker compose downTo also remove volumes:
docker compose down -v-
Access the container
docker exec -it ros2_docker zsh -
Open GUI applications
- Go to
http://localhost:8080/vnc.htmlin your browser - Click "Connect"
- Go to
- ROS2 Humble (Ubuntu base)
- RViz2, development tools (git, cmake, vim)
- Oh My Zsh shell
- GUI access via noVNC
- Your files mounted at
/workspace
docker_ws/- Docker filesprogramming_ws/- Your ROS2 projects go here
Inside the container:
# Test ROS2
ros2 run demo_nodes_cpp talker
# In another terminal
ros2 run demo_nodes_py listener