Skip to content

Using bootBuildImage fails in Bitbucket Pipeline with 403 error #23681

@Selikoff

Description

@Selikoff

Not sure if this is a spring-boot or buildpacks error but I'm trying to use the task gradlew bootBuildImage to create a cloud native spring-boot 2.3.4 project.

It works fine locally but in bitbucket pipelines I get this error:

+ bash ./gradlew bootBuildImage
> Task :bootBuildImage
Building image 'docker.io/library/my-app:0.0.1-SNAPSHOT'
 > Pulling builder image 'gcr.io/paketo-buildpacks/builder:base-platform-api-0.3' ..................................................
 > Pulled builder image 'gcr.io/paketo-buildpacks/builder@sha256:bd63c901299d05e9766e54cf0b0926dcf9bd8e279b9ffeb5c75817f2a6264d61'
 > Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' ..................................................
 > Pulled run image 'paketobuildpacks/run@sha256:3694710d6b756c6583c51db41e1f1ba3f798bc64b3c437e3dd79d24e1ac28596'
 > Executing lifecycle version v0.9.1
 > Using build cache volume 'pack-cache-ff37938eddeb.build'
 > Running creator
> Task :bootBuildImage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootBuildImage'.
> Docker API call to 'localhost:2375/v1.24/containers/create' failed with status code 403 "Forbidden"

Anyone have any idea what this error means? It seems to fail on calling the creator task. I noticed Bitbucket is still running with Docker 18.09.9. Would that cause this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions