- 开始安装
yum install -y docker
- 查看安装结果
docker version
- 开启docker服务
systemctl start docker.service
- 设置开机启动
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
至此,docker安装完成。
标签:daemon,service,systemctl,镜像,docker,安装 From: https://www.cnblogs.com/18sui/p/17426786.html