Docker-Podman

CentOS8 YUM 安装 Docker

2022-02-09  本文已影响0人  ___n

centos8 默认用的是 podman, 没有 docker-ce 需要下载 docker-ce repo

curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo

yum -y install docker-ce
......
Installed:
  container-selinux-2:2.170.0-1.module_el8.6.0+954+963caf36.noarch      containerd.io-1.4.12-3.1.el8.x86_64                            docker-ce-3:20.10.12-3.el8.x86_64                       
  docker-ce-cli-1:20.10.12-3.el8.x86_64                                 docker-ce-rootless-extras-20.10.12-3.el8.x86_64                docker-scan-plugin-0.12.0-3.el8.x86_64                  
  fuse-common-3.2.1-12.el8.x86_64                                       fuse-overlayfs-1.7.1-1.module_el8.6.0+926+8bef8ae7.x86_64      fuse3-3.2.1-12.el8.x86_64                               
  fuse3-libs-3.2.1-12.el8.x86_64                                        libcgroup-0.41-19.el8.x86_64                                   libslirp-4.4.0-1.module_el8.6.0+926+8bef8ae7.x86_64     
  policycoreutils-python-utils-2.9-16.el8.noarch                        slirp4netns-1.1.8-1.module_el8.6.0+926+8bef8ae7.x86_64      
systemctl start docker.srevice
systemctl enable docker
systemctl daemon-reload
docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
```

安装完成!
上一篇 下一篇

猜你喜欢

热点阅读