Skip to content

Instantly share code, notes, and snippets.

@andmax
Last active October 25, 2021 18:13
Show Gist options
  • Select an option

  • Save andmax/daea6c84bfe3d0e0ff332498fd0e1fe0 to your computer and use it in GitHub Desktop.

Select an option

Save andmax/daea6c84bfe3d0e0ff332498fd0e1fe0 to your computer and use it in GitHub Desktop.

Revisions

  1. andmax renamed this gist Oct 25, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. andmax created this gist Oct 19, 2021.
    30 changes: 30 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    # 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"
    }