1.yum install -y yum-utils
2.yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3.yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin(批量安装各种软件)
4.systemctl enable docker --now
5.docker ps
如果回显: 则安装成功
compose 安装验证