failed to ingest "blobs/sha256/...": short read: expected 3849738 bytes but got 1875968: unexpected EOF came from docker load -i on an image archive cut to half its size: that file ended in the middle of one of its blobs. Copy or save the archive again and compare its size with the original before you load it.

The two numbers tell you how bad it is: here less than half of that blob was in the file. The cure in the test was the complete copy; no repair was tried.

The error

docker load -i fix12-img-half.tar
failed to ingest "blobs/sha256/e2de96513ba9eb53b431787ec8a65cdde380ac4772a3e4c4b714dcfde2a102b5": short read: expected 3849738 bytes but got 1875968: unexpected EOF

The exit code was 1. A second run of the same load, followed by a listing, showed that no image came out of it:

docker load -i fix12-img-half.tar
failed to ingest "blobs/sha256/e2de96513ba9eb53b431787ec8a65cdde380ac4772a3e4c4b714dcfde2a102b5": short read: expected 3849738 bytes but got 1875968: unexpected EOF
docker images fix12-dkrun-img
IMAGE   ID             DISK USAGE   CONTENT SIZE   EXTRA

The test file was a copy of a 3,958,784-byte docker save archive cut to its first 1,979,392 bytes.

Why it happens

A docker save archive is a tar file: the full one listed eight entries under blobs/sha256/ and then index.json, manifest.json and oci-layout. The cut copy stops inside the seventh blob. The message reports that blob's expected size, 3849738 bytes, and the 1875968 bytes the file still held for it; tar ran out at the same 1875968 bytes. A copy that was interrupted, a download that stopped early or a disk that filled up while saving would leave a file like this (only the cut copy was run here).

tar -tf shows the same damage. It listed the blobs up to the cut one, the seventh, and then stopped:

tar -tf fix12-img-half.tar
blobs/
blobs/sha256/
...
blobs/sha256/e2de96513ba9eb53b431787ec8a65cdde380ac4772a3e4c4b714dcfde2a102b5tar: Truncated input file (needed 3850240 bytes, only 1875968 available)
tar: Error exit delayed from previous errors

The fix

dir fix12-img.tar fix12-img-half.tar notes.tar
...
22-11-2026  07:39         3,958,784 fix12-img.tar
...
22-11-2026  07:39         1,979,392 fix12-img-half.tar
...
docker load -i fix12-img.tar
Loaded image: fix12-dkrun-img:1.0

The listing shows the cut copy at half the size of the original, and the original loaded at once. On a real transfer, compare the byte count (or a hash such as Get-FileHash, not run here) on both machines, then copy again or run docker save -o again on the source.

How it was reproduced

Docker Desktop 4.99.0 on Windows 11, client and engine 29.9.3, bsdtar 3.8.9 from C:\Windows\System32\tar.exe. The cached alpine:latest image was tagged fix12-dkrun-img:1.0, saved with docker save -o, and the tag removed; a PowerShell script then wrote the first half of the file to a new one with .NET file streams. Each command ran through cmd /c with stderr merged into stdout, so the commands are shown without a prompt. The file names and the tag are the test's own.

Frequently asked

What does docker load short read expected bytes but got mean?
In the test it meant the archive ended inside a blob: expected was that blob's size, got what the file still held. A docker save file cut to half its size gave it.
How do I fix a truncated docker save archive?
Replace it with a complete copy: copy the file again or run docker save again on the machine that has the image, and compare the size with the original first. In the test the full file loaded at once.
How do I check a docker save archive before loading it?
Run tar -tf on it. The full archive listed index.json, manifest.json and oci-layout at the end; the cut copy stopped with Truncated input file.

More decoded errors in the Fixes category. For a file that is not an image archive at all, see docker load unexpected EOF.