Help Center/ Cloud Container Engine/ User Guide (Ankara Region)/ FAQs/ Workload/ Others/ What Can I Do If a Layer Is Missing During Image Pull?
Updated on 2024-12-04 GMT+08:00

What Can I Do If a Layer Is Missing During Image Pull?

Symptom

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.

Possible Cause

Docker earlier than v1.10 supports the layer whose mediaType is application/octet-stream. However, containerd does not support application/octet-stream. As a result, the layer is not pulled.

Solution

You can use either of the following methods to solve this problem:

  • Use Docker v1.11 or later to repackage the image.
  • Manually pull the image.
    1. Log in to the node.
    2. Run the following command to pull the image:

      ctr -n k8s.io images pull --user u:p images

    3. Use the newly pulled image to create a workload.