Rviz in Docker OpenGL 1.5 not supported
I'm running a Docker image for ROS2 on a Macbook. Everything seems to work ok except for Rviz. The error I'm getting is:
[rviz2]: RenderingAPIException: OpenGL 1.5 is not supported in GLRenderSystem: initializeContext.
Here's how I'm starting the container:
docker run -it \
--net=host \
--env="DISPLAY=host.docker.internal:0 \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--volume="$HOME/.Xauthority:/root/.Xauthority:rw" \
rosplanning/navigation2:main.release
rqt runs successfully so I believe that I have the XWindowing system setup correctly. Has anyone got RViz working with a Docker image on a Macbook?
Thank you.
Can you run any other OpenGL based application from your Docker container?
I tried to run gazebo and that gives the following error and then just hangs:
libGL error: No matching fbConfigs or visuals found
Could you suggest another OpenGL application that is in the official ros2 docker image that I could run?
The image that I'm running is:
docker pull rosplanning/navigation2:main.release