add nvidia sources for nvidia-docker
This commit is contained in:
parent
5a812ac0d3
commit
d7e5d5084e
|
@ -138,6 +138,17 @@ no_suspend() {
|
||||||
$SUDO systemctl restart systemd-logind.service
|
$SUDO systemctl restart systemd-logind.service
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_nvidia_docker() {
|
||||||
|
# get latest driver from https://www.nvidia.com/object/unix.html
|
||||||
|
# https://github.com/NVIDIA/nvidia-docker/wiki/Installation-(version-2.0)#prerequisites
|
||||||
|
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
|
||||||
|
|
||||||
|
# Install nvidia-docker2 and reload the Docker daemon configuration
|
||||||
|
sudo apt-get install -y nvidia-docker2
|
||||||
|
sudo pkill -SIGHUP dockerd
|
||||||
|
}
|
||||||
install_i3() {
|
install_i3() {
|
||||||
echo "update and installing i3wm and some tools..."
|
echo "update and installing i3wm and some tools..."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue