Spring Cloud项目部署(一)docker安装
1.升级本地yum。可跳过
yum update
2.安装工具集和依赖
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3.移除旧版本docker
yum remove docker
4.设置yum源
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
5.更新yum缓存
sudo yum makecache fast
6.安装docker
sudo yum -y install docker-ce
7.启动docker
sudo systemctl start docker