-
Notifications
You must be signed in to change notification settings - Fork 2k
Error response from daemon: OCI runtime create failed + CUDA 9.1 + 396.24 #752
Comments
Fixed after discussing with @saurabhjha1, the issue was virtualgl that installed |
I was able to solve the issue with the help of Felix Abecassis. We diagnosed the problem to vgl package-related issue. To check if you have the same issue
|
Hi, I update my nvidia-docker v1 to v2, and meet the same error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused "process_linux.go:385: running prestart hook 1 caused \"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --utility --require=cuda>=10.0 brand=tesla,driver>=384,driver<385 --pid=5742 /var/lib/docker/overlay2/12bf47ad1d254d9707737629f0a2d530d499585c791a8c589c007c3f1b9fd932/merged]\\nnvidia-container-cli: requirement error: invalid expression\\n\""": unknown. and when I try: |
@hangxu124 it's not the same error. You are facing this issue: |
@saurabhjha1 sorry, I met the error as follows: Please give me as suggestion to fix it. Thanks! |
@flx42 docker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused "process_linux.go:385: running prestart hook 1 caused \"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=@/sbin/ldconfig.real --device=all --compute --utility --require=cuda>=9.0 --pid=18535 /var/lib/docker/overlay2/cc3dc5a868799b61df77807eb1c778bb12c3fecd88e48bb0ec235593b0c8ed47/merged]\\nnvidia-container-cli: initialization error: cuda error: unknown error\\n\""": unknown. Please give me some suggestions to fix it. Thanks! |
@bruinxiong I had the exact same issue, anyone could shed lights on it? Thx! |
@runningXin In my case I found that docker image was built with cuda 10 binaries, but local machine had cuda 9, and this mismatch caused the error |
fixed by installing cuda 10.1 on host (+ driver 418 as dependency) |
I ran into this issue when installing nvidia-docker just now, and the solution from @saurabhjha1 fixed it, except for me the line was in @flx42 Is there some reason that this is still necessary? Could whatever it is that installs that file be updated to do it right the first time, so we don't have to modify it manually? |
Issue Description
docker run --runtime=nvidia --rm nvidia/cuda nvidia-smidocker: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:402: container init caused \"process_linux.go:385: running prestart hook 1 caused \\\"error running hook: exit status 1, stdout: , stderr: exec command: [/usr/bin/nvidia-container-cli --load-kmods configure --ldconfig=/sbin/ldconfig.real --device=all --compute --utility --require=cuda>=9.0 --pid=4290 /var/lib/docker/overlay2/5de1fc82ef1ec5c30c41111e5142a53b668ff9904258e918097696d27b43cad9/merged]\\\\nnvidia-container-cli: initialization error: cuda error: no cuda-capable device is detected\\\\n\\\"\"": unknown.
Relevant Outputs
lsb_release -a output
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial
Linux Kernel Information
4.4.0-127-generic
docker info output
``
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 3
Server Version: 18.03.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: nvidia runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-127-generic
Operating System: Ubuntu 16.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 31.4GiB
Name: spencer
ID: A4LD:VXTZ:Q26L:AACU:GAQU:XM5D:ZOA5:MS4G:DVI6:KG5B:GS4A:RBIK
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
``
nvidia-smi outout
``
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.24 Driver Version: 396.24 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 TITAN Xp Off | 00000000:01:00.0 On | N/A |
| 23% 40C P8 15W / 250W | 113MiB / 12194MiB | 1% Default |
+-------------------------------+----------------------+----------------------+
| 1 TITAN V Off | 00000000:02:00.0 Off | N/A |
| 33% 48C P8 30W / 250W | 0MiB / 12066MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1758 G /usr/lib/xorg/Xorg 110MiB |
+-----------------------------------------------------------------------------+
**ldconfig output**
sudo ldconfig
echo $?
0
``
The text was updated successfully, but these errors were encountered: