nvidia-docker : Unknown runtime specified nvidia

后端 未结 4 1904
借酒劲吻你
借酒劲吻你 2021-01-02 05:00

I tried to install the nvidia-docker after installing docker-ce. I followed this : https://github.com/NVIDIA/nvidia-docker to install nvidia-docker. It seems to have install

相关标签:
4条回答
  • 2021-01-02 05:16

    Follow the instruction in FAQ and my problem was solved.

    nvidia-docker-unknown-runtime-specified-nvidia

    0 讨论(0)
  • 2021-01-02 05:28

    It seems you may need to purge docker and reinstall it as in the post: github issues

    sudo apt remove docker-ce
    sudo apt autoremove
    sudo apt-get install docker-ce=5:18.09.0~3-0~ubuntu-bionic
    sudo apt install nvidia-docker2
    
    0 讨论(0)
  • 2021-01-02 05:34

    This is how I resolve the above problem for CentOS 7; hopefully it can help anyone who has similar problems.

    • Add necessary repos to get nvidia-container-runtime:
    distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
    curl -s -L https://nvidia.github.io/nvidia-container-runtime/$distribution/nvidia-container-runtime.repo | sudo tee /etc/yum.repos.d/nvidia-container-runtime.repo
    
    • (Optional) In my case, I disabled the experimental repos:
    sudo yum-config-manager --disable libnvidia-container-experimental
    sudo yum-config-manager --disable nvidia-container-runtime-experimental
    
    • Install nvidia-container-runtime package:
    sudo yum install nvidia-container-runtime
    
    • Update docker daemon:
    sudo vim /etc/docker/daemon.json
    

    with the path to nvidia-container-runtime:

    {
        "runtimes": {
            "nvidia": {
                "path": "/usr/bin/nvidia-container-runtime",
                "runtimeArgs": []
            }
        }
    }
    
    • Finally, you need to make docker update the path:
    sudo pkill -SIGHUP dockerd
    
    0 讨论(0)
  • 2021-01-02 05:36

    Actually, you can try to restart docker daemon by following command.

    sudo systemctl daemon-reload
    sudo systemctl restart docker
    

    Or you can try to reboot your system. to make nvidia-docker work

    0 讨论(0)
提交回复
热议问题