ARTIFACTORY: Resolving 400 Bad Request when Pulling Images with containerd v2.1.x

Products
Frog_Artifactory
Content Type
Use_Case
AuthorFullName__c
Kanishk Sharma
articleNumber
000006714
FirstPublishedDate
2025-12-15T09:48:20Z
lastModifiedDate
2025-12-15

ARTIFACTORY: Resolving 400 Bad Request when Pulling Images with containerd v2.1.x

Introduction

We may encounter a 400 Bad Request error when attempting to pull Docker images from a JFrog Artifactory remote repository. This issue typically arises when using containerd version v2.1.0 and above (including release candidates like v2.1.0-rc.0).
While the image pull fails with a 400 error, we might observe that the same image can be pulled successfully using the standard Docker CLI or older versions of containerd. When the issue occurs, the client (containerd) receives a 400 Bad Request response.
In the Artifactory artifactory-service.log, you will see specific entries indicating a "Single range request" followed by a failure to download the manifest with a status: 206 (Partial Content) error. This confirms that Artifactory failed to handle the partial content response correctly.

Sample Log Entries (artifactory-service.log):
2025-10-17T05:19:28.109Z [jfrt ] [INFO ] [35e4fdf845e2853f] [ponseWithRangeSupportHelper:74] [ttp-nio-8081-exec-88] - Single range request for a3294246919632fa461f38aafb5803: range of 1021 bytes, partial content: bytes 0-1020/1021, User-Agent: containerd
2025-10-17T05:19:28.111Z [jfrt ] [WARN ] [35e4fdf845e2853f] [V2RemoteGetManifestHandler:273] [ttp-nio-8081-exec-88] - Error occurred while trying to download manifest docker-test-cache/nginx/nginx/v1.12.0/list.manifest.json
java.lang.RuntimeException: Failed to download manifest: docker-test/nginx/nginx/v1.12.0/list.manifest.json at url: v2/nginx/nginx/manifests/sha256:1beed3ca46acebe9d3fb62e9067f03d05d5bfa97a00f30938a0a3580563272ad status: 206
Note the User-Agent usually identifies a newer containerd version (e.g., containerd/2.1.4).

Root Cause

This issue is caused by a change in how containerd retrieves image manifests starting with version v2.1.0.
To enhance image pull efficiency through "multipart layer fetching," these newer versions of containerd now incorporate a Range header in their HTTP requests for image manifests. You can review the pertinent code change in containerd here.
Older versions of Artifactory do not correctly support this "range" behavior for remote repository manifest requests. When Artifactory forwards this request or receives the subsequent 206 Partial Content response from the upstream registry, it fails to process the manifest, resulting in the RuntimeException seen in the logs and a 400 error returned to the client.

Resolution

To resolve this issue, we must upgrade JFrog Artifactory to a version that fully supports the new containerd multipart fetching behavior and correctly handles Range requests for manifests.
Note:
Artifactory version 7.117.7 and above includes the fix for this incompatibility.
Verification
After upgrading to a supported version (e.g., 7.117.7, 7.125.6, or later), we can verify the fix by attempting to pull an image using the ctr (containerd CLI) tool. The pull should proceed successfully without the 400 error. Example Successful Pull: User-added image Conclusion The introduction of "multipart fetching" in containerd v2.1.x adds a Range parameter to manifest requests, which older Artifactory versions cannot process correctly (often failing on the resulting 206 status). By upgrading Artifactory to version 7.117.7 or higher, we ensure full compatibility with modern container runtimes and their optimized fetching strategies.