我正在尝试运行一个基于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上,没有任何问题。
知道是什么导致了这个错误吗?
发布于 2020-02-25 06:19:17
如果您的容器试图在脚本中运行Chrome,那么您可以使用Chrome的SwiftShader软件呈现器--它适用于XQuartz 2.7.11:
chromium-browser --use-gl=swiftshader
发布于 2018-08-04 00:07:25
我有同样的问题,运行SUMO模拟GUI在MacOS中的一个码头容器。
作为一种临时解决方案或解决办法,对我起作用的是将XQuartz版本降级为2.7.8,这也是bug.cgi?id=96433中的建议
我仍然会收到错误,但是GUI确实能工作。
发布于 2019-08-01 06:50:03
我已将X石英降级为2.7.8版,但我的应用程序像打开的黑色窗口一样打开,并立即关闭。此容器的日志包含相同的问题:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
...
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(qt_Matrix): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(qt_Matrix): shader program is not linked
https://stackoverflow.com/questions/40597959
复制相似问题