While trying to create a docker image for spring boot app using the
mvn compile jib:dockerBuild getting below error
I am using GoogleJib to create a docker image for my springboot application. but It is getting stuck at 80 percent. Since I do not see any logs except the below Screenshot. Options I have tried
- Restart system
- Sign in /Sign out from docker
- Restart docker
- Uninstall-Install Docker
PS: The image is attached but need to click on link
2
Answers
Try to change jib-maven-plugin to older version in pom.xml. e.g 3.3.2
I was also facing the same but it was resolved to me by following the below steps
changed the jib-maven-plugin to an older version in pom.xml. e.g 3.3.2
Now This gave me the correct error telling my java version in pom is 21 but the base docker image it is trying to create is using 17
I) Try changing the version of Java to 17 in Pom (or)
ii) Try adding the below in the configuration of plugin (I followed this)
FYI my issue was with java version so it got resolved for by following above steps.