Troubleshooting_Ubuntu22 - HonuRobotics/dockwater GitHub Wiki
Setting up rocker with NVIDIA on Ubuntu 22.04 laptop.
I ran into an issue with the generic setup.
Symptoms
Gazebo would not start from within the container, giving the error
libGL error: MESA-LOADER: failed to retrieve device information
Then tried running nvidia-smi
and that failed with error Failed to initialize NVML: Unknown Error
Fix
- Followed instructions here https://stackoverflow.com/questions/72932940/failed-to-initialize-nvml-unknown-error-in-docker-after-few-hours
- And, followed instructors here https://github.com/orgs/autowarefoundation/discussions/2965 to add
--devices /dev/dri
to the rocker call in dockwater. See this commit: https://github.com/HonuRobotics/dockwater/commit/2757777d8d67deb80568e95dfbe42f6e2038abc6