1,安装包,允许 apt 命令 HTTPS 访问 Docker 源。
apt install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
2.添加 Docker 官方的 GPG
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
3.将 Docker 的源添加到 /etc/apt/sources.list
sudo echo "deb https://downloa