You can modify the image name in Maven using maven sample code block and in Gradle using:
bootBuildImage {
builder = "myorg/demo"
}
It should be updated to:
bootBuildImage {
imageName = "myorg/demo"
}
If not fixed, it causes following error:
Docker API call to 'localhost/v1.24/images/create?fromImage=gcr.io%2Fprojectid%2Fprojectname%3Alatest' failed with status code 500 "Internal Server Error"
Caused by: org.springframework.boot.buildpack.platform.docker.transport.DockerEngineException: Docker API call to 'localhost/v1.24/images/create?fromImage=gcr.io%2Fprojectid%2Fprojectname%3Alatest' failed with status code 500 "Internal Server Error"
at org.springframework.boot.buildpack.platform.docker.transport.HttpClientTransport.execute(HttpClientTransport.java:135)
Following sample of topical guide needs update.
It should be updated to:
If not fixed, it causes following error:
Similar error is reported in Spring boot Issue 21515