This is a Dockerfile to use OpenGL/CUDA/Vulkan with ROS2 humble on Docker container with NVIDIA GPU.
glxgears | vulkaninfo |
---|---|
![]() |
![]() |
- NVIDIA graphics driver
- Docker
- xorg-xhost
- nvidia-container-toolkit
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -t atinfinity/cudagl:11.8.0-cudnn8-devel-ubuntu22.04 .
docker build -t atinfinity/cudagl:11.8.0-cudnn8-devel-ubuntu22.04 -f Dockerfile.root .
./launch_container.sh