安装源的问题
可以尝试下面方式手动安装
- Ubuntu
- 1、删除之前安装的docker
- apt-get remove docker docker-engine docker.io
- 2、安装依赖
- apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
- 3、添加信任的依赖
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 4、添加软件仓库
- add-apt-repository \
- "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
- $(lsb_release -cs) \
- stable"
- 5、安装
- apt-get update
- apt-get install docker-ce
复制代码 |