docker安装
1. docker官网
2. docker安装步骤
2.1 移除旧docker
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine;
2.2 安装所需包
yum install -y yum-utils
# 设置系统安装docker的网址
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
3. 安装docker
yum install docker-ce docker-ce-cli containerd.io
# 设置开机自启动
systemctl enable docker