Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to x86 image if image pulling fails #4290

Merged
merged 2 commits into from
Jul 19, 2021
Merged

Conversation

bsideup
Copy link
Member

@bsideup bsideup commented Jul 19, 2021

Note that, to make it work, we need to use Docker API version 1.32 or newer.

1.32 got released in Docker 17.09 (2017-09-26), which is almost 4 years old.
Not as old as Java 8, of course, but still old enough to be considered widely adopted :D

try {
pullImageCmd.exec(new TimeLimitedLoggedPullImageResultCallback(log)).awaitCompletion();
} catch (DockerClientException e) {
// Try to fallback to x86
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we log that we're doing this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea - will add 👍

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a second thought (and a round of discussions on Slack), logging this would require a bit more work, so let's keep it as it is right now and do a follow up later 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants