Last active
October 25, 2021 18:13
-
-
Save andmax/daea6c84bfe3d0e0ff332498fd0e1fe0 to your computer and use it in GitHub Desktop.
Fresh install Docker + avoid VPN conflict
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fresh install Docker + avoid VPN conflict | |
sudo rm -rf /etc/docker/* | |
sudo apt-get remove --purge *docker* | |
sudo apt-get autoremove | |
sudo apt-get autoclean | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" | |
sudo apt update | |
apt-cache policy docker-ce | |
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html | |
curl https://get.docker.com | sh && sudo systemctl --now enable docker | |
sudo vim /etc/docker/daemon.json | |
{ | |
"runtimes": { | |
"nvidia": { | |
"path": "nvidia-container-runtime", | |
"runtimeArgs": [] | |
} | |
}, | |
"default-address-pools" : [{ | |
"base" : "168.240.0.0/16", | |
"size" : 24 | |
}], | |
"bip" : "192.168.1.1/24" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment