Deepin 15.11安装docker-ce
一.版本信息
操作系统:Deepin 15.11
Docker: 19.03.12, build 48a66213fe
containerd :containerd.io-1.2.6-3.3.el7.x86_64.rpm
二.安装
1.添加软件源
vim /etc/apt/source.list
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
2.添加软件源公钥
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
3.安装Docker
apt install docker-ce
4.给普通用户添加运行Docker权限
sudo usermod -aG docker $USER #添加完成后需要重启
sudo reboot
三.依赖问题
1.下载containerd.io-1.2.6-3.3.el7.x86_64.rpm,并由rpm转换为deb
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm #下载软件包
sudo apt install alien #rpm <=> deb
sudo alien containerd.io-1.2.6-3.3.el7.x86_64.rpm #转换
dpkg -i containerd.io-1.2.6-3.3.el7.x86_64.deb #安装containerd.io
2.安装Docker
apt install docker-ce
四.参考文章