# Install nvidia-docker2 and reload the Docker daemon configuration
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerdsystemctl restart docker
</syntaxhighlight>
<syntaxhighlight lang="bash">
docker run --runtime=nvidia --rm nvidia/cuda:9.0-devel nvcc --version
</syntaxhighlight>
<syntaxhighlight lang="bash">
docker run --runtime=nvidia --rm nvidia/cuda:9.0-devel nvidia-smi
</syntaxhighlight>
This should show a similar output as when you run it directly, i.e. show the same graphics card(s).
== Access the containers on the nVidia GPU cloud ==