mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 20:26:53 +00:00
15 lines
428 B
Bash
15 lines
428 B
Bash
#!/bin/bash
|
|
|
|
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
|
|
apt-key add -
|
|
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
|
|
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
|
|
tee /etc/apt/sources.list.d/nvidia-docker.list
|
|
apt-get update
|
|
|
|
# Install nvidia-docker2 and reload the Docker daemon configuration
|
|
apt-get install -y nvidia-docker2
|
|
pkill -SIGHUP dockerd
|
|
|
|
reboot
|