Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:… – neutrinus May 12 '14 at 19:08
here's a good explanation of how to do it:… – Alisson Aug 25 '14 at 16:05
Here is a container that uses x11vnc from docker. – Matt Feb 3 at 19:31

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


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.