Skip to content

Commit

Permalink
Nvidia rootless (#116)
Browse files Browse the repository at this point in the history
* Replace deprecated nvidia-docker2 link

* Documentation for Rootless Docker + NVIDIA
  • Loading branch information
Tuebel authored Feb 8, 2021
1 parent 5507dc5 commit 4f9f6d7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,20 @@ For the NVIDIA option this has been tested on the following systems using nvidia
| 18.04 | | nvidia-390 (works) |
| 20.04 | 5.4.0 | nvidia-driver-460 (works) |

Install nvidia-docker 2: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit
Install nvidia-docker 2: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker

### Additional Configuration for rootless mode
For executing Docker as a non-root user, separate installation instructions are provided here: https://docs.docker.com/engine/security/rootless/

After installing Rootless Docker, the nvidia-docker2 package can be installed as usual from the website above.
Currently, [cgroups are not supported in rootless mode](https://github.com/moby/moby/issues/38729) so we need to change `no-cgroups` in */etc/nvidia-container-runtime/config.toml*

```shell
[nvidia-container-cli]
no-cgroups = true
```

Note, that changing this setting will lead to a `Failed to initialize NVML: Unknown Error` if Docker is executed as root (noted [here](https://github.com/NVIDIA/nvidia-container-runtime/issues/85)).

## Intel integrated graphics support

Expand Down

0 comments on commit 4f9f6d7

Please sign in to comment.