尝试使用下面方法手动安装一下docker- Ubuntu/Debian:
- 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、添加信任的依赖
- debian:
- curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
- Ubuntu:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- 4、添加软件仓库
- debian:
- add-apt-repository \
- "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
- $(lsb_release -cs) \
- stable"
-
- Ubuntu:
- 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
复制代码
|