Files
doc-exports/docs/cce/umn/cce_faq_00319.html
Dong, Qiu Jian 86fb05065f CCE UMN for 24.2.0 version -20240428
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>
2024-06-10 08:19:07 +00:00

21 lines
2.2 KiB
HTML

<a name="cce_faq_00319"></a><a name="cce_faq_00319"></a>
<h1 class="topictitle1">What Can I Do If a Layer Is Missing During Image Pull?</h1>
<div id="body0000001262800473"><div class="section" id="cce_faq_00319__section7382121194919"><h4 class="sectiontitle">Symptom</h4><p id="cce_faq_00319__p153305212515">When containerd is used as the container engine, there is a possibility that the image layer is missing when an image is pulled to a node. As a result, the workload container fails to be created.</p>
<p id="cce_faq_00319__p131831849103314"><span><img id="cce_faq_00319__image1847215013332" src="en-us_image_0000001851743828.png"></span></p>
</div>
<div class="section" id="cce_faq_00319__section881132183815"><h4 class="sectiontitle">Possible Cause</h4><p id="cce_faq_00319__p1572271193813">Docker earlier than v1.10 supports the layer whose <strong id="cce_faq_00319__b109347244318">mediaType</strong> is <strong id="cce_faq_00319__b1042074917613">application/octet-stream</strong>. However, containerd does not support <strong id="cce_faq_00319__b99613597619">application/octet-stream</strong>. As a result, the layer is not pulled.</p>
</div>
<div class="section" id="cce_faq_00319__section1827515335914"><h4 class="sectiontitle">Solution</h4><p id="cce_faq_00319__p16313511439">You can use either of the following methods to solve this problem:</p>
<ul id="cce_faq_00319__ul154141155422"><li id="cce_faq_00319__li141411584214">Use Docker v1.11 or later to repackage the image.</li><li id="cce_faq_00319__li109560313428">Manually pull the image.<ol id="cce_faq_00319__ol746119541424"><li id="cce_faq_00319__li5461195414214">Log in to the node.</li><li id="cce_faq_00319__li34611543421">Run the following command to pull the image:<p id="cce_faq_00319__p147195774217"><a name="cce_faq_00319__li34611543421"></a><a name="li34611543421"></a><strong id="cce_faq_00319__b16355957203614">ctr -n k8s.io images pull --user u:p images</strong></p>
</li><li id="cce_faq_00319__li124618549428">Use the newly pulled image to create a workload.</li></ol>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="cce_faq_00186.html">Others</a></div>
</div>
</div>