当前位置:主页 > 查看内容

CCE容器拉取私有镜像时报错“Auth is empty”_云容器引擎 CCE_常

发布时间:2021-09-24 00:00| 位朋友查看

简介:问题描述 在CCE的控制台界面中为已经创建的工作负载更换镜像,选择我上传的镜像,容器在拉取镜像时报错“Auth is empty, only accept X-Auth-Token or Authorization”。 Failed to pull image "100.125.0.198:20202/magicdoom/tidb-operator:latest": rpc e……

问题描述

在CCE的控制台界面中为已经创建的工作负载更换镜像,选择我上传的镜像,容器在拉取镜像时报错“Auth is empty, only accept X-Auth-Token or Authorization”。

Failed to pull image "100.125.0.198:20202/magicdoom/tidb-operator:latest": rpc error: code = Unknown desc = Error response from daemon: Get https://100.125.0.198:20202/v2/magicdoom/tidb-operator/manifests/latest: error parsing HTTP 400 response body: json: cannot unmarshal number into Go struct field Error.code of type errcode.ErrorCode: "{\"errors\":[{\"code\":400,\"message\":\"Auth is empty, only accept X-Auth-Token or Authorization.\"}]}"

解答

您可以通过CCE控制台界面选择私有镜像创建应用,此时CCE会自动带上该secret,升级时不会出现该问题。

您通过API创建应用时,在deployment中带入该secret也可以在升级时避免该问题。

imagePullSecrets:
- name: default-secret

本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!
上一篇:添加资源栈实例 - 资源编排 下一篇:没有了

推荐图文

  • 周排行
  • 月排行
  • 总排行

随机推荐