-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Docker API version is incorrectly reported when '/_ping` calls fail and version should be fixed #43452
Docker API version is incorrectly reported when '/_ping` calls fail and version should be fixed #43452
Comments
This will be fixed in 3.4.1 #43424 |
Thanks @vonZeppelin. @dbaltor, feel free to give the SNAPSHOT a go and provide feedback if you want to test the fix. |
Thanks @philwebb and @vonZeppelin. I've tested the snapshot and I'm afraid it doesn't work either. I've got the same error message after upgrading to the latest SNAPSHOT:
AS per the error message above and this comment #28387 (comment), it looks like Spring Boot started using a Docker API version not available in Bitbucket pipelines to build the container image. Is there anything the Spring team might be able to do to solve this? |
I think we depend on newer APIs so we can't easily lower the baseline I'm afraid. |
Thanks @philwebb. I'd like to pick your brain (as well as anybody else's reading this) to try understanding what might be happening. Atlassian upgraded BB to use Docker Engine 25 at the beginning of this year. Here's the output of
I don't know where the |
Actually, looking again I wonder if our fix in #43424 is correct. If we don't get a reply, we return the minimum version. |
I can't reopen the #43424 because the branch is gone. We'll use this one to fix it. |
I think we need to refine the fix for #40944. IMO, calls to the docker API should use a fixed version number and not attempt to detect the running version. I believe that we should be doing this to protect us against any future changes to the JSON returned from the Docker API. For most of our calls, we can retain our minimum supported version of 1.24. For calls that have a platform we need to up that to 1.41. Getting the actual API version is useful for error reporting, but I don't think we need to fail or assume v1.24 if a call to |
Thank you very much @philwebb. Your work is much appreciated. |
@dbaltor If you get a chance, please try the latest SNAPSHOT again. I haven't actually been able to test things in BitBucket. |
@philwebb I've just tested and it works like a charm. 🎉 Congrats!
|
mvn spring-boot:build-image -Dspring-boot.build-image.imageName="$FULL_IMAGE_NAME" -DskipTests
fails in Bitbucket Pipeline with the following error message:It works fine with Spring Boot 3.3.6.
Spring Boot 3.4.0
Bitbucket step image:
maven:3.9.5-amazoncorretto-21-al2023
Maven configuration:
It might be related to #19945
The text was updated successfully, but these errors were encountered: