sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
添加国内镜像GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
添加阿里云仓库地址
sudo add-apt-repository \
"deb [arch=arm64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu \
$(lsb_release -cs) \
stable"
更新源
sudo apt-get update
查找版本,找到版本号
apt-cache madison docker-ce
安装
sudo apt-get -y install docker-ce=[VERSION]