安装docker
系统环境:liunx Ubuntu18.04
step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
step 2: 安装GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce
阿里云加速
方法一:
狂神说docker
https://www.bilibili.com/video/BV1og4y1q7M4?p=6
https://www.bilibili.com/video/BV1og4y1q7M4?p=7
方法二:
直接进入阿里云镜像加速器
https://cr.console.aliyun.com/cn-shanghai/instances/mirrors