Ubuntu, Debian installation Docker CE

This article describes how to install on Ubuntu and Debian systems Docker CE (Docker Community Edition), the main content of the article is excerpted from an official document Docker over.

The official document: https://docs.docker.com/

Before installing Docker CE, be clear about Docker CE can only be installed x64 on the version of the system, does not apply to x86 version of the system.

Secondly, Ubuntu system to meet: the Ubuntu> = 16.04 (the LTS) ; the system to meet the Debian: the Debian> = the Stretch. 9 (the stable) .

Lower Linux distributions can not be installed Docker CE.

installation steps:

Step 1: Uninstall the old software (if any)

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

Step 2: Update the software repository indexes

apt-get update

Step 3: Install tools

apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

Step 4: Key Installation GPG

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

Step 5: Add Docker warehouse

Modify /etc/apt/sources.list file, select Docker official repository according to their type of operating system.

#Debian 9 Docker use this warehouse 
deb https://download.docker.com/linux/debian the Stretch stable

the #ubuntu 16.04 Docker use this warehouse
deb https://download.docker.com/linux/ubuntu xenial stable

Step 6: update software repository indexes

apt-get update

Step 7: Installation Docker CE

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

So far, Docker CE has been successfully installed, then you can run Docker mirroring.

Guess you like

Origin www.cnblogs.com/dgjnszf/p/10958816.html