-
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
Provide better diagnostics when building an OCI image fails due to a 500 response from Docker #21515
Comments
The 500 error indicates that a failure has occurred in Docker. Its logs should provide some more information about why it has failed. Can you please share those logs with us? |
I read the relative springboot sourcecode,found that,API_VERSION was hardcoded to "1.24",but |
@lixinchuang did you see this comment: #19945 (comment) |
environment
exec spring-boot:build-image
docker remote api log
|
yes,but that issue was closed,so i opened this new issue |
Don't try to find reason by yourself, just show the error log of docker. |
If you're in China, Http POST:
Reponse: {
"message": "Get https://gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
} Gradle error:
And there's no mirror registries remain available currently in China. :( |
Thanks, @xJoeWoo. We should improve our error message here. The message in body of the 500 response is useful as it gives a hint as to why the failure occurred. |
I saw similar error when wrong value was used in builder property of Gradle bootBuildImage task. I wanted to use imageName but used wrongly used builder property. Able to build image after correction.
I was referring to following sample of topical guide:
I had just opened spring-attic/top-spring-boot-docker#9 in repository for the topical guide but closed after noticing the PR spring-attic/top-spring-boot-docker#8, which is yet to be merged. |
today I used the command mvn spring-boot:build-image to build a docker image. but it failed
the error message:
then I checked the docker API version:
The text was updated successfully, but these errors were encountered: