gklingler / docker3d Goto Github PK
View Code? Open in Web Editor NEWbuild and run docker images with hardware accelerated (DRI) 3d support
build and run docker images with hardware accelerated (DRI) 3d support
according to “”if your host uses an open source driver” ,run container and exec glxgears :
[root@961d112d4b0d misc]# glxinfo | grep Open
libGL: screen 0 does not appear to be DRI2 capable
libGL: MESA-LOADER: dlopen(/usr/lib64/dri/swrast_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /root/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Tesla V100-PCIE-16GB/PCIe/SSE2
OpenGL version string: 1.4 (2.1.2 NVIDIA 450.80.02)
OpenGL extensions:
First, thanks for pointing out "--privileged is essential for DRI support." - this saved me when trying to use Nvidia's CUDA containers to also get OpenGL working.
I'm not exactly sure of the implications of using --privileged
, though it sounds like you are basically just giving the container the same privileges your user would have for device access (i.e., not necessarily root access level). That sounds reasonable to me, though some of what I read casually indicated it could be used for exploits.
Are there possibly more granular options that can be used on the horizon?
Is this solution feasible with boot2docker on OS X?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.