ContOS 安装 docker
安装DOCKER
yum install -y docker
开启DOCKER服务
systemctl start docker.service
查看安装结果
docker version
设置开机启动
systemctl enable docker.service
配置DOCKER镜像下载加速
vim /etc/docker/daemon.json
- 添加如下内容
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
重启 docker 服务即可:
systemctl daemon-reload
systemctl restart docker.service