vim /etc/docker/daemon.json
{
"insecure-registries": ["XXX:18189","192.168.2.152:18189"],
//配置docker支持http方式访问私有仓库
"registry-mirrors": ["http://hub-mirror.c.163.com"],
//配置docker镜像源163镜像
"graph": "/home/docker-data/lib/docker"
//配置docker资源路径
}
cat /root/.docker/config.json
{
"auths": {
"XXX:18189": {
"auth": "YWRtaW46SGFyYm9y"
}
}
}