在容器内运行Chromium:libGl错误 [英] Run Chromium inside container: libGl error
问题描述
我正在尝试在docker容器中运行Chromium。
这是我得到的输出:
I'm trying to run Chromium inside docker container. Here's the output I get:
Created new window in existing browser session.
libGL error: failed to open drm device: No such file or directory
libGL error: failed to load driver: vmwgfx
我在互联网上搜索了很多有关此问题的信息,但找不到任何明确的信息。您对如何解决此问题有任何建议吗?
I've searched a lot on the internet about this issue but cannot find anything clear. Do you have any suggestions on how can I solve this problem ?
预先感谢您。
推荐答案
如Mark Wragg所写一条评论; 来自wiki.ros.org的指南非常好
As Mark Wragg wrote in a comment; this guide from wiki.ros.org is pretty good
似乎您缺少vmwgfx GL驱动程序,位于 mesa3d .org 您可以看到如何安装它们。
It seems like you're missing the vmwgfx GL drivers, at mesa3d.org you can see how to install them.
在安装所有驱动程序后,我自己遇到了此问题,但后来我发现我也需要将图形卡安装到Docker容器。对于使用
Myself ran into this issue after all drivers was installed, but then I found out that I also need to mount the graphic card to the docker container. For Intel cards that's made with
docker run --device=/dev/dri:/dev/dri ...
对于其他图形卡,我推荐 wiki.ros.org
For other graphic cards I recommend the guide from wiki.ros.org
这篇关于在容器内运行Chromium:libGl错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!