Last active
December 8, 2022 02:46
-
-
Save lamhoangtung/d19bb72a99639a762b6d935fbd080c7c to your computer and use it in GitHub Desktop.
Revisions
-
lamhoangtung revised this gist
Jan 4, 2021 . 1 changed file with 16 additions and 10 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,32 @@ # How to install nvidia-docker offline for Ubuntu 18.04 ## Prerequisite Before install `nvidia-docker`, you will need these first: - [nvidia-driver](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal) - [docker](https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/arm64/docker-ce-cli_18.09.9~3-0~ubuntu-xenial_arm64.deb) Then download these file: - [libnvidia-container1_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/amd64/libnvidia-container1_1.3.0-1_amd64.deb) - [libnvidia-container-tools_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/amd64/libnvidia-container-tools_1.3.0-1_amd64.deb) - [nvidia-container-runtime_3.4.0-1_amd64.deb](https://github.com/NVIDIA/nvidia-container-runtime/raw/gh-pages/stable/ubuntu18.04/amd64/nvidia-container-runtime_3.4.0-1_amd64.deb) - [nvidia-container-toolkit_1.3.0-1_amd64.deb](https://github.com/NVIDIA/nvidia-container-runtime/raw/gh-pages/stable/ubuntu18.04/amd64/nvidia-container-toolkit_1.3.0-1_amd64.deb) - [nvidia-docker2_2.5.0-1_all.deb](https://github.com/NVIDIA/nvidia-docker/raw/gh-pages/ubuntu18.04/amd64/nvidia-docker2_2.5.0-1_all.deb) ## Instruction Install them one by one: ```bash # Install nvidia wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600 sudo dpkg -i cuda-repo-ubuntu1804-11-2-local_11.2.0-460.27.04-1_amd64.deb sudo apt-key add /var/cuda-repo-ubuntu1804-11-2-local/7fa2af80.pub sudo apt-get update sudo apt-get -y install cuda # Install docker offline sudo dpkg -i docker-ce-cli_18.09.9~3-0~ubuntu-xenial_arm64.deb # Install nvidia docker sudo dpkg -i libnvidia-container1_1.3.0-1_amd64.deb sudo dpkg -i libnvidia-container-tools_1.3.0-1_amd64.deb sudo dpkg -i nvidia-container-toolkit_1.3.0-1_amd64.deb @@ -32,14 +39,13 @@ sudo systemctl restart docker ``` And this should work now ;)): ```bash sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi (Please note that you have to docker save ... | gzip > .tar.gz -> docker load -i .tar.gz -> copy locally -> run for the nvidia/cuda:11.0-base image) ``` ## Note This same instruction can be apply for different Linux distribution and (or) arch. You just need to choose the suitable file. I will update for RHEL7.7 later # Credit go to @vuonghoainam for adding offline docker installation -
lamhoangtung revised this gist
Dec 30, 2020 . 1 changed file with 0 additions and 37 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,40 +1,3 @@ # How to install nvidia-docker offline for Ubuntu 18.04 -
lamhoangtung revised this gist
Dec 30, 2020 . No changes.There are no files selected for viewing
-
lamhoangtung revised this gist
Dec 30, 2020 . 1 changed file with 49 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,49 @@ [2:46 PM] hiro link trains và credential ntn e nhỉ [2:46 PM] hiro gửi cái [2:46 PM] hiro vãi lúa ông drake (smile)) [2:46 PM] hiro a quên mất ở đâu r [2:56 PM] linus api { web_server: http://139.180.222.253:8080 api_server: http://139.180.222.253:8008 credentials { "access_key" = "TX6SN6BKA1Z8KQDIX65O" "secret_key" = "aO&m@HxXNOLq6VU9e@#dw3SAt2Owmt4Jx%38ZDzD53&Vc#0YQh" } } [2:56 PM] linus Đây a [2:56 PM] hiro uh đc roài [2:56 PM] linus http://139.180.222.253:8080/dashboard [2:56 PM] hiro giới thiệu roài [7:22 PM] hiro # How to install nvidia-docker offline for Ubuntu 18.04 ## Prerequisite Before install `nvidia-docker`, you will need these first: - [nvidia-driver](https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=deblocal) - [docker](https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/arm64/docker-ce-cli_18.09.9~3-0~ubuntu-xenial_arm64.deb) Then download these file: - [libnvidia-container1_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/amd64/libnvidia-container1_1.3.0-1_amd64.deb) @@ -14,6 +53,7 @@ Then download these file: - [nvidia-docker2_2.5.0-1_all.deb](https://github.com/NVIDIA/nvidia-docker/raw/gh-pages/ubuntu18.04/amd64/nvidia-docker2_2.5.0-1_all.deb) ## Instruction Install them one by one: ```bash @@ -32,5 +72,11 @@ And this should work now ;)): sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi ``` ## Note This same instruction can be apply for different Linux distribution and (or) arch. You just need to choose the suitable file. I will update for RHEL7.7 later # Credit go to @vuonghoainam for adding offline docker installation -
lamhoangtung revised this gist
Dec 22, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,8 @@ Before install `nvidia-docker`, you will need these first: - docker Then download these file: - [libnvidia-container1_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/amd64/libnvidia-container1_1.3.0-1_amd64.deb) - [libnvidia-container-tools_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/amd64/libnvidia-container-tools_1.3.0-1_amd64.deb) - [nvidia-container-runtime_3.4.0-1_amd64.deb](https://github.com/NVIDIA/nvidia-container-runtime/raw/gh-pages/stable/ubuntu18.04/amd64/nvidia-container-runtime_3.4.0-1_amd64.deb) - [nvidia-container-toolkit_1.3.0-1_amd64.deb](https://github.com/NVIDIA/nvidia-container-runtime/raw/gh-pages/stable/ubuntu18.04/amd64/nvidia-container-toolkit_1.3.0-1_amd64.deb) - [nvidia-docker2_2.5.0-1_all.deb](https://github.com/NVIDIA/nvidia-docker/raw/gh-pages/ubuntu18.04/amd64/nvidia-docker2_2.5.0-1_all.deb) -
lamhoangtung created this gist
Dec 14, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ # How to install nvidia-docker offline for Ubuntu 18.04 ## Prerequisite Before install `nvidia-docker`, you will need these first: - nvidia-driver - docker Then download these file: - [libnvidia-container1_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/arm64/libnvidia-container1_1.3.0-1_arm64.deb) - [libnvidia-container-tools_1.3.0-1_amd64.deb](https://github.com/NVIDIA/libnvidia-container/raw/gh-pages/stable/ubuntu18.04/arm64/libnvidia-container-tools_1.3.0-1_arm64.deb) - [nvidia-container-runtime_3.4.0-1_amd64.deb](https://github.com/NVIDIA/nvidia-container-runtime/raw/gh-pages/stable/ubuntu18.04/amd64/nvidia-container-runtime_3.4.0-1_amd64.deb) - [nvidia-container-toolkit_1.3.0-1_amd64.deb](https://github.com/NVIDIA/nvidia-container-runtime/raw/gh-pages/stable/ubuntu18.04/amd64/nvidia-container-toolkit_1.3.0-1_amd64.deb) - [nvidia-docker2_2.5.0-1_all.deb](https://github.com/NVIDIA/nvidia-docker/raw/gh-pages/ubuntu18.04/amd64/nvidia-docker2_2.5.0-1_all.deb) ## Instruction Install them one by one: ```bash sudo dpkg -i libnvidia-container1_1.3.0-1_amd64.deb sudo dpkg -i libnvidia-container-tools_1.3.0-1_amd64.deb sudo dpkg -i nvidia-container-toolkit_1.3.0-1_amd64.deb sudo dpkg -i nvidia-container-runtime_3.4.0-1_amd64.deb sudo dpkg -i nvidia-docker2_2.5.0-1_all.deb ``` Then restart docker: ```bash sudo systemctl restart docker ``` And this should work now ;)): ```bash sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi ``` ## Note This same instruction can be apply for different Linux distribution and (or) arch. You just need to choose the suitable file.