ROS docker image with GUI and Nvidia GPU acceleration support. There's a more comprehensive repo here.
-
Install nvidia-container-toolkit,
-
clone this repository and build
docker build -t ros-docker-gui .
-
run the container
docker run -it \ -e DISPLAY \ --gpus all \ -v /tmp/.X11-unix/:/tmp/.X11-unix/ \ --network host \ --name ros-gui \ ros-docker-gui
-
configure
xauth
- on host machine, copy token listed by
xauth list
- in docker, add the token
xauth add <token>
-
tests
# gpu nvidia-smi # GUI application glmark2 # gazebo gazebo
-
initialize
rosdep
sudo rosdep init
rosdep update