加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

macos – 从mac上的容器运行GUI解决“libGL错误:找不到匹配的f

发布时间:2020-12-16 03:35:50 所属栏目:安全 来源:网络整理
导读:我正在尝试从我的Mac上运行基于ubuntu:15.10的容器. 我运行以下命令 docker run -i -v /tmp/.X11-unix:/tmp/. -e DISPLAY=192.168.0.104:0 --privileged mycompany/mycontainer (IP取自我的en0:inet使用ifconfig) 我收到以下错误: libGL error: No matchi

我正在尝试从我的Mac上运行基于ubuntu:15.10的容器.

我运行以下命令

docker run -i -v /tmp/.X11-unix:/tmp/. -e DISPLAY=192.168.0.104:0 --privileged mycompany/mycontainer

(IP取自我的en0:inet使用ifconfig)

我收到以下错误:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  25
  Current serial number in output stream:  26

此容器在另一个团队成员Ubuntu OS上运行,没有任何问题.

是什么原因造成了这个错误?

最佳答案
我在MacOS中的docker容器中运行SUMO模拟GUI时遇到同样的问题.

作为临时解决方案或解决方法,对我有用的是将XQuartz版本降级到2.7.8,正如https://bugs.freedesktop.org/show_bug.cgi?id=96433中所建议的那样

我仍然收到错误,但GUI确实有效.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读