title: nvidia-docker : Unknown runtime specified nvidia
body: <p>I tried to install the nvidia-docker after installing docker-ce. I followed this : <a href="https://github.com/NVIDIA/nvidia-docker" rel="noreferrer">https://github.com/NVIDIA/nvidia-docker</a> to install nvidia-docker. It seems to have installed correctly. </p>
  
  <p>I tried to run: </p>
  
  <pre><code>$ sudo docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi
  docker: Error response from daemon: Unknown runtime specified nvidia.
  See 'docker run --help'.
  </code></pre>
  
  <p>Although, this works (without --runtime=nvidia): </p>
  
  <pre><code>$ docker container run -ti ubuntu bash
  </code></pre>
  
  <p>Some additional info on my system: It is an ubuntu server 16.04 with 8 GPUs (Titan Xp) and nvidia driver version 387.26. I can run nvidia-smi -l 1 on the host system and it works as expected. </p>
  
  <pre><code>$ dpkg -l | grep -E '(nvidia|docker)'
  ii  docker-ce                              18.06.1~ce~3-0~ubuntu                        amd64        Docker: the open-source application container engine
  ii  libnvidia-container-tools              1.0.0-1                                      amd64        NVIDIA container runtime library (command-line tools)
  ii  libnvidia-container1:amd64             1.0.0-1                                      amd64        NVIDIA container runtime library
  ii  nvidia-container-runtime               2.0.0+docker18.06.1-1                        amd64        NVIDIA container runtime
  ii  nvidia-container-runtime-hook          1.4.0-1                                      amd64        NVIDIA container runtime hook
  ii  nvidia-docker2                         2.0.3+docker18.06.1-1                        all          nvidia-docker CLI wrapper
  
  
  
  $ cat /etc/docker/daemon.json 
  {
      "runtimes": {
          "nvidia": {
              "path": "nvidia-container-runtime",
              "runtimeArgs": []
          }
      }
  }
  </code></pre>
  
  <p>I have come across: <a href="https://github.com/NVIDIA/nvidia-docker/issues/501" rel="noreferrer">https://github.com/NVIDIA/nvidia-docker/issues/501</a>, but I am not sure how I should go about it. </p>