Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Chromium inside container: libGl error

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 ?

Thank you in advance.

like image 378
Ivan Gandacov Avatar asked Feb 24 '17 12:02

Ivan Gandacov


1 Answers

As Mark Wragg wrote in a comment; this guide from wiki.ros.org is pretty good

It seems like you're missing the vmwgfx GL drivers, at mesa3d.org you can see how to install them.

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 ...

For other graphic cards I recommend the guide from wiki.ros.org

like image 153
kontrollanten Avatar answered Sep 30 '22 03:09

kontrollanten