Docker
1 Docker
1.1 Installation
-
Uninstall old versions:
sudo apt remove docker docker-engine docker.io containerd runc
-
Update the
apt
package index and install packages to allowapt
to use a repository over HTTPS:sudo apt update sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common
-
Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
-
Add the stable repository:
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable"
-
Install the latest version of
Docker Engine
andcontainerd
:sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io
2 Nvidia-Docker
The Nvidia-Docker allows users to build and run GPU accelerated Docker containers.