Skip to content

Fallback to amd64 on InternalServerErrorException during image pull#11841

Open
Jaiswal-Devpriya wants to merge 1 commit into
testcontainers:mainfrom
Jaiswal-Devpriya:fix-arm64-image-pull-fallback
Open

Fallback to amd64 on InternalServerErrorException during image pull#11841
Jaiswal-Devpriya wants to merge 1 commit into
testcontainers:mainfrom
Jaiswal-Devpriya:fix-arm64-image-pull-fallback

Conversation

@Jaiswal-Devpriya

Copy link
Copy Markdown

No description provided.

@Jaiswal-Devpriya Jaiswal-Devpriya requested a review from a team as a code owner June 11, 2026 21:55
@Jaiswal-Devpriya

Copy link
Copy Markdown
Author

I investigated the failure path reported in #11782 and found that the existing fallback to linux/amd64 is only triggered for DockerClientException and NotFoundException.

In the reported case, some registries return an InternalServerErrorException with a message indicating that no image exists for the requested ARM64 architecture. Since that exception type was not included in the fallback path, Testcontainers would not attempt the existing linux/amd64 fallback.

I've updated the fallback logic to also handle InternalServerErrorException and added a regression test covering this behavior.

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