<p>I want to have a container inside a pod, that uses some docker runtime (we can specify it using <code>--runtime</code> flag in pure docker).</p>

<p>In my case, I want to use <code>nvidia-docker2</code> runtime (<a href="https://github.com/NVIDIA/nvidia-docker" rel="nofollow noreferrer">https://github.com/NVIDIA/nvidia-docker</a>) for using GPU inside my containers in Kubernetes cluster.</p>

<p><strong>Answer:</strong> Specify default runtime in <code>/etc/docker/daemon.json</code> like that:</p>

<pre><code>"default-runtime": "nvidia",
"runtimes": {
    "nvidia": {
        ...
    }
}
</code></pre>

Дима Меркурьев
<p>You want to use "<code>nvidia-docker</code> runtime (<a href="https://github.com/NVIDIA/nvidia-docker" rel="nofollow noreferrer">https://github.com/NVIDIA/nvidia-docker</a>) for using GPU inside your containers in Kubernetes cluster", then take a look into the official docs provided by keubernetes themselves:</p>

<ul>
<li><a href="https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/</a></li>
<li><a href="https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/</a></li>
</ul>
