How to install Docker with GPU support for Ubuntu Linux

How to install Docker environment with GPU support for Ubuntu Linux.png

 

# If you need NVIDIA GPU support, please install NVIDIA GPU driver first:

 

https://www.leaderg.com/article/index?sn=11544

 

 

# Install Ubuntu WITHOUT internet connection.

 

# Add APT universe repository

 

sudo add-apt-repository universe

 

sudo apt update

 

sudo apt upgrade

 

sudo reboot

 

 

# Install Docker ++

 

sudo apt remove docker docker-engine docker.io containerd runc

 

sudo apt update

 

sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

 

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

 

sudo apt-key fingerprint 0EBFCD88

 

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

 

sudo apt update

 

sudo apt install docker-ce docker-ce-cli containerd.io

 

apt-cache madison docker-ce

 

# Add GPU support ++

 

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)

 

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -

 

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 update && sudo apt install -y nvidia-container-toolkit

 

# Add GPU support --

 

sudo systemctl restart docker

 

sudo reboot

 

# Install Docker --

Contact Us and How to Buy


Welcome to contact us. Please refer to the following link:

https://www.leaderg.com/article/index?sn=11059

Recommended Article

1.
Sdk4AI-Windows: AI Dev Tools

2.
App4AI-Windows: AI Application Software

3.
Training

4.
Contact Us, How to Buy, Customer Service

Thanks for our customers

Taiwan University, Tsing Hua University, Yang Ming Chiao Tung University, Cheng Kung University, Taipei Medical University, Taipei University of Nursing and Health Sciences, National Chung Hsing University, Chi Nan University, Ilan University, United University, Defence University, Military Academy, Naval Academy, Feng Chia University, Chang Gung University, I-Shou University, Shih Chien University, Taiwan University of Science and Technology, Taichung University of Science and Technology, Yunlin University of Science and Technology, Chin-Yi University of Science, Formosa University, Pintung University of Science and Technology, Kaohsiung University of Science and Technology, Chaoyang University of Technology, Ming Chi University of Technology, Southern Taiwan University of Science and Technology, China University of Technology, Gushan Senior High School, Taipei Veterans General Hospital, Chang Gung Medical Foundation, Tzu Chi Medical Foundation, E-Da Hospital, Industry Technology Research Institute, Institute for Information Industry, Chung-Shan Institute of Science and Technology, Armaments Bureau, Ministry of Justice Investigation Bureau, Institute of Nuclear Energy Research, Endemic Species Research Institute, Institute of Labor, Occupational Safety And Health, Metal Industries Research & Development Centre, Taiwan Instrument Research Institute, Automotive Research & Testing Center, Taiwan Water Corporation, Taiwan Semiconductor Manufacturing Co., Ltd., United Microelectronics Corp., Nanya Technology, Winbond Electronics Corp., Xintec Inc., Arima Lasers Corporation, AU Optronics Corporation, Innolux Corporation, HannStar Display Corporation, Formosa Plastics Group., Formosa Technologies Corporation, Nan Ya Plastics Corp., Formosa Chemicals & Fibre Corporation, Chinese Petroleum Corporation, Logitech, ELAN Microelectronics Corp., Lextar Electronics Corporation, Darfon Electronics Corp., WPG Holdings, Mirle Automation Corporation, Symtek Automation Asia Co., Ltd, ChipMOS Technologies Inc., Dynapack International Technology Corporation, Primax Electronics Ltd., Feng Hsin Steel, China Ecotek, Grade Upon Technology Corp., AAEON Technology Inc., Stark Technology, Inc., Horng Terng Automation Co., Ltd., Zhen Ding Technology Holding Ltd, Boardtek Electronics Corporation, MiTAC International Corporation, Allion Labs, Inc., Sound Land Corp., Hong Hu Tech, etc.