完整报错信息如下:
Get "https://registry-1.docker.io/v2/": x509: certificate is valid for *.api-test.cfadevelop.com, *.app-test.cfadevelop.com, not registry-1.docker.io
问题分析:
大概率是因为docker的daemon.json中为配置国内镜像源的原因。
解决方案:
在/etc/docker/daemon.json中新增国内镜像源
"registry-mirrors": ["https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","https://pee6w651.mirror.aliyuncs.com","http://hub-mirror.c.163.com"],
"live-restore": true
重新拉取镜像成功!