Skip to content

libimage: clarify local image transport error - #2549

Closed
Rajkaran-122 wants to merge 1 commit into
containers:mainfrom
Rajkaran-122:libimage-clarify-local-transport-error
Closed

libimage: clarify local image transport error#2549
Rajkaran-122 wants to merge 1 commit into
containers:mainfrom
Rajkaran-122:libimage-clarify-local-transport-error

Conversation

@Rajkaran-122

Copy link
Copy Markdown

Summary

Clarify the error returned by Runtime.LookupImage when a local image lookup is attempted using a non-storage transport such as docker://.

Previously the error identified the unsupported transport but did not explain how to refer to a locally stored image. This change preserves the existing rejection while adding guidance to remove the transport prefix.

Changes

  • Clarify the error returned for non-storage transports in Runtime.LookupImage
  • Extend TestLookupImage to cover docker:// references
  • Preserve existing lookup and error propagation behavior

Testing

go test -run '^TestLookupImage$' -count=1 -tags containers_image_openpgp ./libimage

The targeted test exceeded the local execution limit because the existing test pulls Alpine.

Also verified:

git diff --check

Signed-off-by: Rajkaran Yadav <yadavrajkaran854@gmail.com>
@github-actions

Copy link
Copy Markdown

This repository has been migrated to https://github.com/containers/container-libs. Please open your PR there.

@github-actions github-actions Bot closed this Jul 30, 2026
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.

1 participant