x11docker: Run with --gpu option and fail to get a glx context (remote server with NVIDIA GPU)

I am trying to follow an example found here: https://github.com/mviereck/x11docker/issues/198

I ran this:

x11docker --gpu x11docker/check glxinfo | grep renderer

And I have nvidia drivers installed on my host. I get the following error:

docker.io/x11docker/check:latest
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  26
  Current serial number in output stream:  25

Am I missing something? I was hoping the --gpu option would suffice for passing the GPU through to my x11docker container and I’m not seeing that is the case. So I ran the test above, and I can see the same error that I was getting in the context of another container (x11docker/lxde-wine) when trying to run an openGL application.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 35 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@mviereck FYI according to the author,

https://github.com/ehfd/docker-nvidia-glx-desktop/issues/8#issuecomment-819957414

when all containers are privileged mode AND shares the same TTY multiple Xorg instances work.