创建容器的命令为:
docker run -ti --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix fc2c86
创建容器的命令为:
docker run -ti --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix fc2c86
本人使用Intel 6代移动端低压笔记本,无独立显卡,在开启docker后,使用rviz出现了以下报错:
root@showchi-HP-EliteBook-820-G3:~# rviz
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
[ INFO] [1709450439.943120810]: rviz version 1.14.14
[ INFO] [1709450439.943169400]: compiled against Qt version 5.12.8
[ INFO] [1709450439.943203867]: compiled against OGRE version 1.9.0 (Ghadamon)
[ INFO] [1709450439.957143206]: Forcing OpenGl version 0.
libGL error: MESA-LOADER: failed to retrieve device information
libGL error: MESA-LOADER: failed to retrieve device information
Segmentation fault (core dumped)
然而,测试了gedit和ros小海龟都可以正常显示出来,使用系统为Kubuntu 22.04,ROS docker镜像为小鱼的noetic镜像,请问有大佬知道是怎么回事吗?