Docker installed on ubuntu

Tsinghua Source: https://mirrors.tuna.tsinghua.edu.cn/

Debian / Ubuntu users The
following content is modified from official documents.

If you have installed docker in the past, delete it first:

sudo apt-get remove docker docker-engine docker.io
First install dependencies:

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
Depending on your distribution, the following content is different. The distribution you use:
Trust Docker's GPG public key:

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
For computers with amd64 architecture, add a software repository:

sudo add-apt-repository \ "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \ $(lsb_release -cs) \ stable"
If you are a Raspberry Pi or other ARM architecture computer, please run:

echo "deb [arch=armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \ $(lsb_release -cs) stable" | \ sudo tee /etc/apt/sources.list.d/docker.list
Last install

sudo apt-get update
sudo apt-get install docker-ce

Published 44 original articles · liked 0 · visits 1226

Guess you like

Origin blog.csdn.net/weixin520520/article/details/105001737