title: why is my NVIDIA docker not working? Error response from daemon?
body: <p>I'm trying to install NVIDIA docker.
  I used these lines:</p>
  
  <pre><code>curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
    sudo apt-key add -
  distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
  
  curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
    sudo tee /etc/apt/sources.list.d/nvidia-docker.list
  
  sudo apt-get update
  </code></pre>
  
  <p>and then:</p>
  
  <p><code>$ sudo apt-get install nvidia-docker</code></p>
  
  <p>Now trying to check if it installed correctly by typing:</p>
  
  <p><code>nvidia-docker run --rm nvidia/cuda nvidia-smi</code></p>
  
  <p>This error appears: </p>
  
  <blockquote>
    <p>nvidia-docker | 2018/11/06 13:09:24 Error: Got permission denied while
    trying to connect to the Docker daemon socket at
    unix:///var/run/docker.sock: Get
    <a href="http://%2Fvar%2Frun%2Fdocker.sock/v1.38/version" rel="nofollow noreferrer">http://%2Fvar%2Frun%2Fdocker.sock/v1.38/version</a>: dial unix
    /var/run/docker.sock: connect: permission denied</p>
  </blockquote>
  
  <p>Later I tried:</p>
  
  <p><code>sudo nvidia-docker run --rm nvidia/cuda nvidia-smi</code></p>
  
  <p>This error appears:</p>
  
  <blockquote>
    <p>Using default tag: latest latest: Pulling from nvidia/cuda
    473ede7ed136: Pull complete  c46b5fa4d940: Pull complete 
    93ae3df89c92: Pull complete  6b1eed27cade: Pull complete 
    d31e9163d0a5: Pull complete  8668af631f88: Pull complete 
    0d99f8ab6ae2: Pull complete  74440c29d798: Pull complete  Digest:
    sha256:a6b5fd418d1cd0bc6d8a60c1c4ba33670508487039b828904f8494ec29e6b450
    Status: Downloaded newer image for nvidia/cuda:latest docker: Error
    response from daemon: OCI runtime create failed:
    container_linux.go:348: starting container process caused "exec:
    \"nvidia-smi\": executable file not found in $PATH": unknown.</p>
  </blockquote>
  
  <p>I install Linux with Ubuntu.
  Can someone help me, please?</p>