Problem 1: problem with installed package podman-docker-2:4.0.2-1.module_el8.7.0+1106+45480ee0.noarc

Failed to restart docker.service: Unit docker.service not found.

 

网上找了几个方案,snap这个直接被我pass了,安装过程没准会遇到新问题,
于是我准备重新安装最新版本的 Docker Engine-Community 和 containerd
但还是报错。

No match for argument: docker-ce
No match for argument: docker-ce-cli
No match for argument: containerd.io
Error: Unable to find a match: docker-ce docker-ce-cli containerd.io

借着又去找阿里源

安装依赖

yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.13-3.1.el7.x86_64.rpm
sudo yum install -y yum-utils  device-mapper-persistent-data  lvm2
sudo yum-config-manager  --add-repo   https://download.docker.com/linux/centos/docker-ce.repo

还是报错

Error: 
 Problem 1: problem with installed package podman-docker-2:4.0.2-1.module_el8.7.0+1106+45480ee0.noarch

解决podman 冲突

yum erase podman buildah
yum install docker-ce docker-ce-cli containerd.io

 

 

 

 

 

 

搜索