Centos7 安装docker
获取具docker仓库
cd /etc/yum/yum.repos.d
wget https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo
修改docker-ce.repo
cd /etc/yum/yum.repos.d
vim docker-ce.repo
安装docker
yum insatll docker-ce
配置加速
mkdir /etc/docker
vim /etc/docker/daemon.json
写入:
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}
启动docker
systemctl start docker.service