ancient-solstice-81580
12/30/2024, 8:38 AMerror: booting builder: context deadline exceeded
when trying to build an image using docker-build provider.
I use following code when trying to build the image:
image, errCreatingImage := dockerbuild.NewImage(context, name, &dockerbuild.ImageArgs{
Push: pulumi.Bool(true),
Tags: pulumi.StringArray{
pulumi.String(imageId),
},
Dockerfile: &dockerbuild.DockerfileArgs{
Location: dockerfileLocation,
},
Context: &dockerbuild.BuildContextArgs{
Location: location,
},
}, pulumi.Timeouts(&pulumi.CustomTimeouts{Create: "30m"}), pulumi.DependsOn(dependsOn))
I've verified that docker build context location is correct and Dockerfile location is also correct by building the image from terminal.
For the sake of simplicity and debugging I've replaced my Dockerfile original contents with following: "FROM hello-world", but error is still there.
Would be grateful if anyone could point me in the right direction.happy-fall-31841
12/31/2024, 7:10 AMancient-solstice-81580
01/02/2025, 7:42 AM~/.pulumi
folder didn't help, only caused the need to recreate stack definitions. I still get following errors:
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 30.0s done
#1 ERROR: context deadline exceeded
------
> [internal] booting buildkit:
------
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 30.0s done
#1 ERROR: context deadline exceeded
------
> [internal] booting buildkit:
------
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 30.0s done
#1 ERROR: context deadline exceeded
------
> [internal] booting buildkit:
------
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by