Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleJib is stuck at 80 percent while creating docker image

While trying to create a docker image for spring boot app using the mvn compile jib:dockerBuild getting below error

enter image description here

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

  1. Restart system
  2. Sign in /Sign out from docker
  3. Restart docker
  4. Uninstall-Install Docker

PS: The image is attached but need to click on link

like image 635
Anshu Avatar asked Oct 21 '25 05:10

Anshu


1 Answers

I was also facing the same but it was resolved to me by following the below steps

  1. changed the jib-maven-plugin to an older version in pom.xml. e.g 3.3.2

  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)

             <from>
                 <image>eclipse-temurin:21-jre</image> 
             </from>
    

FYI my issue was with java version so it got resolved for by following above steps.

like image 142
ramaswamy vamsi Avatar answered Oct 23 '25 18:10

ramaswamy vamsi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!