yum update -y
yum install -y yum-utils
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce docker-ce-cli containerd.io -y
systemctl start docker
版本查看地址 https://github.com/docker/compose/releases
wget -c -t 0 https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` -O /usr/local/bin/docker-compose
chmod a+rx /usr/local/bin/docker-compose
docker-compose -v
https://*****.mirror.aliyuncs.com 需要配置成你的加速地址,阿里云-> 控制台 ->容器镜像服务
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://*****.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker