forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
19 lines
1.9 KiB
HTML
19 lines
1.9 KiB
HTML
<a name="cce_faq_00106"></a><a name="cce_faq_00106"></a>
|
|
|
|
<h1 class="topictitle1">What Should I Do If Error Message "Auth is empty" Is Displayed When a Private Image Is Pulled?</h1>
|
|
<div id="body1598596168075"><div class="section" id="cce_faq_00106__section239516155317"><h4 class="sectiontitle">Problem Description</h4><p id="cce_faq_00106__p106551022123118">When you replace the image of a container in a created workload and use an uploaded image on the CCE console, an error message "Auth is empty, only accept X-Auth-Token or Authorization" is displayed when the uploaded image is pulled.</p>
|
|
<pre class="screen" id="cce_faq_00106__screen1760415663214">Failed to pull image "<em id="cce_faq_00106__i0984205573814">IP address:Port number</em> /magicdoom/tidb-operator:latest": rpc error: code = Unknown desc = Error response from daemon: Get https://<em id="cce_faq_00106__i78691120123910">IP address:Port number</em> /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.\"}]}"</pre>
|
|
</div>
|
|
<div class="section" id="cce_faq_00106__section12093953215"><h4 class="sectiontitle">Solution</h4><p id="cce_faq_00106__p106954743313">You can select a private image to create an application on the CCE console. In this case, CCE automatically carries the secret. This problem will not occur during the upgrade.</p>
|
|
<p id="cce_faq_00106__p83844914323">When you create a workload using an API, you can include the secret in Deployments to avoid this problem during the upgrade.</p>
|
|
<pre class="screen" id="cce_faq_00106__screen059134323319">imagePullSecrets:
|
|
- name: default-secret</pre>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_faq_00186.html">Others</a></div>
|
|
</div>
|
|
</div>
|
|
|