1.镜像配置:
docker默认从国外拉取镜像,拉取地址:https://index.docker.io/v1/,可通过配置国内镜像加速器,提高拉取速度,对于使用systemd的系统,需在/etc/docker/daemon.json中写入如下内容,下边以163为例:
{
"registry-mirrors":[
"https://hub-mirror.c.163.com"
]
}
2.服务重启:
sudo systemctl daemon-reload
sudo systemctl restart docker