Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an app that can only be run in in X11 environment with full GPU access/hardware OpenGL.

I can run it on Hetzner servers as their machines have decent GPUs. Ubuntu desktop is installed and it has x11vnc running.

I'm thinking about putting all the desktop stuff inside of docker container and installing ubuntu server on the host. Is there a way to give docker container full access to GPU?

Thanks! Leonti

share|improve this question
    
related question: stackoverflow.com/questions/17979949/… –  neutrinus May 12 at 19:08
1  
here's a good explanation of how to do it: stackoverflow.com/questions/25185405/… –  Alisson Aug 25 at 16:05

1 Answer 1

You'll have to run the container using privilegded status (see more at the official docs)

i.e. docker run --privileged --device=/dev/snd:/dev/snd etc

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.