centeros 8 安装docker

yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine

  

yum install -y yum-utils

  

yum-config-manager \
 --add-repo \
http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

  

yum erase podman buildah

  

yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin

  

systemctl start docker

  

systemctl enable docker.service 

  

posted @ 2024-01-31 22:48  小琪子  阅读(40)  评论(0编辑  收藏  举报