On freshly install Ubuntu 22.04 Jammy LTS. Without doing anything,
I've installed rocker with,
pip3 install rocker
pip3 install --force-reinstall git+https://github.com/osrf/rocker.git@main
rocker --version
# rocker 0.2.12
and ran Example in README
rocker --nvidia --x11 osrf/ros:noetic-desktop-full gazebo
and Got error saying
libGL error: MESA-LOADER: failed to retrieve device information
I was able to fix the problem by adding --volume /dev:/dev in rocker argument. which adds -v /dev:/dev to docker argument.
rocker --volume /dev:/dev --nvidia --x11 osrf/ros:noetic-desktop-full gazebo
Related articles
#206
kinu-garage/hut_10sqft#819