title: Spring spring-boot:build-image gives HTTP 500 error
body: <p>I'm trying to containerize a simple spring boot app with a hello world rest service( initialized from spring-inializer site).I have installed in my local environment Docker Desktop for Windows with Kubernetes enabled.
  Output from docker version :</p>
  <pre><code> Cloud integration: v1.0.23
   Version:           20.10.14
   API version:       1.41
   Go version:        go1.16.15
   Git commit:        a224086
   Built:             Thu Mar 24 01:53:11 2022
   OS/Arch:           windows/amd64
   Context:           default
   Experimental:      true
  
  Server: Docker Desktop 4.7.1 (77678)
   Engine:
    Version:          20.10.14
    API version:      1.41 (minimum version 1.12)
    Go version:       go1.16.15
    Git commit:       87a90dc
    Built:            Thu Mar 24 01:46:14 2022
    OS/Arch:          linux/amd64
    Experimental:     false
   containerd:
    Version:          1.5.11
    GitCommit:        3df54a852345ae127d1fa3092b95168e4a88e2f8
   runc:
    Version:          1.0.3
    GitCommit:        v1.0.3-0-gf46b6ba
   docker-init:
    Version:          0.19.0
    GitCommit:        de40ad0
  </code></pre>
  <p>Pom.xml content :</p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;2.5.13&lt;/version&gt;
          &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
      &lt;groupId&gt;com.example&lt;/groupId&gt;
      &lt;artifactId&gt;rest-service-complete&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;name&gt;rest-service-complete&lt;/name&gt;
      &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
      &lt;properties&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${project.parent.version}&lt;/version&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  <p>When I execute the command to build/run image
  <code>./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=springio/rest-complete-service</code>
  I get bellow error :
  <code>[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.5.13:build-image (default-cli) on project rest-service-complete: Execution default-cli of goal org.springframework.boot:spring-boot-maven-plugin:2.5.13:build-image failed: Docker API call to 'localhost/v1.24/images/create?fromImage=docker.io%2Fpaketobuildpacks%2Fbuilder%3Abase' failed with status code 500 &quot;Internal Server Error&quot; and message &quot;received unexpected HTTP status: 500 Server Error&quot; -&gt; [Help 1]</code></p>
  <p>Would appreciate any ideas to get past this.</p>