解决的问题,centos8 使用yum默认安装的docker为podman;如何安装docker-ce呢?
1,卸载默认安装的podman
2, 添加docker源,
3,安装docker-ce
4,启动docker 查看docker 版本
开始系统的信息:
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 8.5.2111
podman version 3.3.1
[root@localhost ~]# yum install docker -y
[root@localhost ~]# docker -v
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
1,卸载默认安装的podman
[root@localhost ~]# yum remove docker -y
2, 添加docker源,
[root@localhost ~]# yum install -y yum-utils
[root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
3,安装docker-ce
[root@localhost ~]# yum install docker-ce -y
4,启动docker 查看docker 版本
[root@localhost ~]# systemctl start docker
[root@localhost ~]# docker -v
Docker version 20.10.12, build e91ed57