1.安装
- 在 Ubuntu 中快速安装 Docker
更新ubuntu的apt源索引
sudo apt-get update
- 安装包允许apt通过HTTPS使用仓库
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
- 添加Docker key
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
- 设置Docker官方源
sudo add-apt-reposi