Closed KiaraGrouwstra closed 5 years ago
obviously that gives me no hits... I may wanna ask at https://github.com/NixOS/nixpkgs/pull/51733 or file an issue.
I get this error also using the invocation nvidia-docker run ...
.
alternative repro for pytorch:
docker pull nvcr.io/nvidia/pytorch:19.03-py3
nvidia-docker run -ti --rm -v $PWD:/app nvcr.io/nvidia/pytorch:19.03-py3 python
Hi, I found this issue while searching for the exact same Unknown runtime specified nvidia
error message. There's an option virtualisation.docker.enableNvidia
that is required to register the nvidia runtime with the docker daemon.
Adding the code below to my configuration.nix
solved the problem for me:
hardware.opengl.driSupport32Bit = true; # Precondition for enableNvidia below
virtualisation.docker = {
enable = true;
enableNvidia = true;
};
That's awesome, thank you! :grin:
I just ran into this problem. Small world.