Skip to content

Conversation

@shaunmlowry
Copy link

When using non-Docker drivers (like Kubernetes), the inspectImage function was falling back to GetImageConfig which defaults to linux/amd64 architecture. This caused architecture mismatches when the target platform was different.

Changes:

  • Added GetImageConfigForArch function to image package
  • Modified inspectImage to retrieve target architecture from driver
  • Updated inspectImage to use architecture-specific image config retrieval
  • Added proper error handling with descriptive messages

Fixes architecture detection for Kubernetes and other non-Docker drivers.

When using non-Docker drivers (like Kubernetes), the inspectImage function
was falling back to GetImageConfig which defaults to linux/amd64 architecture.
This caused architecture mismatches when the target platform was different.

Changes:
- Added GetImageConfigForArch function to image package
- Modified inspectImage to retrieve target architecture from driver
- Updated inspectImage to use architecture-specific image config retrieval
- Added proper error handling with descriptive messages

Fixes architecture detection for Kubernetes and other non-Docker drivers.
@shaunmlowry shaunmlowry closed this by deleting the head repository Dec 22, 2025
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