您好,您手动安装下docker看下能不能手动安装成功
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
复制代码
|