阿里云es 安装docker
1、卸载旧版
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
2、使用仓库安装
# 设置仓库
sudo yum install -y yum-utils
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3、安装docker engine
yum install docker-ce docker-ce-cli containerd.io
systemctl start docker #start docker
docker run hello-world #验证