Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.

nvidia-docker 2.0 #15

Closed
diegoferigo opened this issue Nov 14, 2017 · 3 comments
Closed

nvidia-docker 2.0 #15

diegoferigo opened this issue Nov 14, 2017 · 3 comments

Comments

@diegoferigo
Copy link
Owner

This new alpha release switched to a custom runtime, substituting the default runc.

The first experiments I performed with it were still not fully working. Here some comments for future reference [1]:

  • The new nvidia-docker does not use anymore a docker volume containing the drivers, but it ships everything with the new runtime. This means that nvidia-docker-compose is not anymore required. Indeed, by setting the following configuration file, the new runtime is loaded by default:
{
    "default-runtime": "nvidia",
    "runtimes": {
        "nvidia": {
            "path": "/usr/bin/nvidia-container-runtime",
            "runtimeArgs": []
        }
    }
}
  • The following env variables must be set in the image [2][3]:
nvidia-docker run --rm -ti -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all ubuntu:16.04 nvidia-smi

In this way, the GPU is detected in the container, but applications that require GLX (e.g. gazebo) don't work, generating the following error:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  30
  Current serial number in output stream:  31

GLX seems to be unsupported for the time being. Further tests are however required.

@sxsong1207
Copy link

same problem. I tried any method I can find. No one work.

@diegoferigo
Copy link
Owner Author

We need to wait the support from Nvidia, I had to switch back to the 1.0 version which supports everything smoothly.

@diegoferigo
Copy link
Owner Author

Closing in favor of diegoferigo/development-iit#1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants