unexpected EOF was the only line docker load -i printed for a 44-byte text file saved as notes.tar: the file was not an image archive, whatever its name said. Check a file like that with tar -tf; the docker save file in the test listed manifest.json and blobs/, and that is the kind of file to load.

Find the real archive, or make it again with docker save -o, and load that. An empty file named .tar gave a different short message in the same test, unrecognized image format.

The error

docker load -i notes.tar
unexpected EOF

That is the whole output, with exit code 1. The file notes.tar was 44 bytes of plain text: This is a plain text file with a .tar name. The message does not name the file and does not say "tar", which makes it hard to search for.

Why it happens

EOF stands for end of file. The .tar name did not make the text file an archive, and the Windows tar tool says so more clearly for the same file:

tar -tf notes.tar
tar: Error opening archive: Unrecognized archive format

The empty file was the second non-archive tried, and its message differs:

docker load -i empty.tar
unrecognized image format

A real archive cut short prints a longer line that ends in short read: expected 3849738 bytes but got 1875968: unexpected EOF; that case has its own post.

The fix

docker save -o fix12-img.tar fix12-dkrun-img:1.0
...
tar -tf fix12-img.tar
blobs/
blobs/sha256/
...
index.json
manifest.json
oci-layout
docker load -i fix12-img.tar
Loaded image: fix12-dkrun-img:1.0

tar -tf lists the archive without unpacking it (the first ... stands for the test steps run in between, the tag removal among them, the second for eight blob lines); manifest.json and index.json are the files to look for. Then docker load printed Loaded image and docker images showed the tag.

How it was reproduced

Docker Desktop 4.99.0 on Windows 11, client and engine 29.9.3, and bsdtar 3.8.9 from C:\Windows\System32\tar.exe. A PowerShell script ran each command through cmd /c with stderr merged into stdout, so the commands are shown without a prompt. The real archive is the cached alpine:latest image tagged fix12-dkrun-img:1.0 and saved with docker save (3,958,784 bytes); the test removed that tag before loading the archive back. The empty file was written by PowerShell with zero bytes. The file names and the tag are the test's own.

Frequently asked

What does docker load unexpected EOF mean?
In the test a 44-byte text file named notes.tar gave exactly unexpected EOF and exit code 1: it was not an image archive. An empty file gave unrecognized image format instead.
How do I check that a file is a docker save archive?
Run tar -tf file.tar. The docker save archive in the test listed blobs/, index.json, manifest.json and oci-layout; the text file gave Unrecognized archive format.
How do I make an image archive that docker load accepts?
Save the image with docker save -o file.tar image:tag. In the test that archive loaded with docker load -i and printed Loaded image, while a text file with a .tar name did not.

More decoded errors in the Fixes category. For docker save on a missing image, see No such image.