5

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

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

1

You might want to also have a look at Singularity, an open-source container designed to give direct access to the host devices without giving root privileges to the container itself.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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