yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoyum install -y docker-ce docker-ce-cli containerd.io docker-composemkdir -p /etc/dockertee /etc/docker/daemon.json <<-'EOF'{"registry-mirrors": ["https://hakg1fu6.mirror.aliyuncs.com"],"log-driver":"json-file","log-opts": {"max-size":"100M", "max-file":"3"}}EOFsystemctl daemon-reloadsystemctl enable --now docker
