Docker: Error response from daemon: OCI runtime create failed: ... nvidia-container-cli: requirement error: unsatisfied condition: cuda >= 10.0

Running a docker container with nvidia-docker

sudo docker run --interactive --tty --rm --runtime=nvidia lambda-stack:latest /bin/bash

I get the following error:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process
 caused "process_linux.go:424: container init caused \"process_linux.go:407: 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 --pid=14518 
/var/lib/docker/overlay2/fc52133be184988ca79b80ff3f5df8a8b4a444b05b6cfeec6d98a3b9e17e3906/merged]
\\\\nnvidia-container-cli: requirement error: unsatisfied condition: cuda >= 10.0\\\\n\\\"\"": unknown.

Unsure right now what the fix for this is. Though clearly the version of nvidia-docker doesn’t support CUDA 10.

[deleted]

20 characters

I got the solution from this website. Refer to the angersson’s answer.