1.1报错信息:ERROR: failed to solve: tomcat:8-jdk8-openjdk: failed to resolve source metadata for docker.io/library/tomcat:8-jdk8-openjdk: unexpected status from HEAD request to https://****.mirror.aliyuncs.com/v2/library/tomcat/manifests/8-jdk8-openjdk?ns=docker.io: 403 Forbidden
1.2截图:
1.3缘故原由:镜像源不稳定,拉取不到镜像
1.4办理方法:
多弄几个镜像源
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://noohub.ru",
"https://huecker.io",
"https://docker.timeweb.cloud",
"https://registry.hub.docker.com",
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://registry.docker-cn.com"
"https://docker.registry.cyou/",
"https://docker-cf.registry.cyou/",
"https://dockercf.jsdelivr.fyi/",
"https://docker.jsdelivr.fyi/",
"https://dockertest.jsdelivr.fyi/",
"https://mirror.aliyuncs.com/",
"https://dockerproxy.com/",
"https://mirror.baidubce.com/",
"https://docker.m.daocloud.io/",
"https://docker.nju.edu.cn/",
"https://docker.mirrors.sjtug.sjtu.edu.cn/",
"https://docker.mirrors.ustc.edu.cn/",
"https://mirror.iscas.ac.cn/",
"https://docker.rainbond.cc/",
"https://jq794zz5.mirror.aliyuncs.com",
"https://docker.m.daocloud.io"
]
复制代码
设置文件参考阿里云镜像
下面两条重启下令不要忘记
后续未完
2.删除镜像时,没有把缓存删除干净导致的空间不敷
2.1报错信息:ERROR: failed to solve: failed to copy files: userspace copy failed: write /var/lib/docker/overlay2/znjdpy91j2odvls3x3y34tlpt/merged/home/fonts/fonts.tar.gz: no space left on device
3.1报错信息:dialing uatharbor.tongwei.com:443 container via direct connection because has no HTTPS proxy: connecting to ***.com:443 : dial tcp: lookup uatharbor.tongwei.com : no such host
3.2缘故原由及办理方式:
没开VPN,大部分公司搭建的k8s都在私服,以是要通过vpn访问
私服的镜像堆栈没有开发访问端口,必要和沟通是否端口被限制了,或者关闭了。
上面都正常,则可通过登入目标镜像堆栈看看,利用下令:docker login ***.20.107.** -u name -p 暗码,如果可以登入则可以推送了
4.1 报错信息:denied: {"errors":[{"code":"DENIED","message":"Quota exceeded when processing the request of adding 357.5 MiB of storage resource, which when updated to current usage of 19.7 GiB will exceed the configured upper limit of 20.0 GiB.","detail":"Quota exceeded when processing the request of adding 357.5 MiB of storage resource, which when updated to current usage of 19.7 GiB will exceed the configured upper limit of 20.0 GiB."}]}