Failed to enable unit: Unit file docker.service does not exist

// 启动docker
systemctl start docker
Failed to start docker.service: Unit docker.service not found

dnf remove podman -y

dnf install -y yum-utils device-mapper-persistent-data lvm2

//阿里云
 dnf config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
//清华大学源 
 dnf config-manager --add-repo https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.reposd

//安装docker-ce
dnf install docker-ce -y

//查看docker版本
docker version

// 启动docker
systemctl start docker

// 设置开机自启
systemctl enable  docker

手动下载docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

你可能感兴趣的:(docker,容器,运维)