skip to Main Content

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

2

Answers


  1. Try to change jib-maven-plugin to older version in pom.xml. e.g 3.3.2

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search