Skip to content

Conversation

@mike-sul
Copy link
Collaborator

Dockerd emits an "image loaded" response for each tag reference listed in an image manifest. This means that if an image has N tag references, dockerd will send the "image loaded" response N times, even though the image blobs are only loaded once.

Additionally, when a digest reference is used in the "RepoTags" field of an image load manifest, dockerd sends the "image loaded" response only once, regardless of the number of tag references.

This commit updates the image loading logic to account for these behaviors and correctly count the responses.

Dockerd emits an "image loaded" response for each tag reference listed in
an image manifest. This means that if an image has N tag references,
dockerd will send the "image loaded" response N times, even though the
image blobs are only loaded once.

Additionally, when a digest reference is used in the "RepoTags" field of
an image load manifest, dockerd sends the "image loaded" response only
once, regardless of the number of tag references.

This commit updates the image loading logic to account for these
behaviors and correctly count the responses.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul requested a review from detsch November 25, 2025 14:04
Make sure the current image index doesn't exceed the image URI slice
size before using it. If it exceeds, then print warning message.

Signed-off-by: Mike Sul <mike.sul@foundries.io>
@mike-sul mike-sul merged commit 0400d34 into main Nov 25, 2025
2 checks passed
@mike-sul mike-sul deleted the fix-app-loading-to-dockerd branch November 25, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants