Hey guys, I get the `error: booting builder: conte...
# getting-started
a
Hey guys, I get the
error: 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:
Copy code
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.
a
@happy-fall-31841 Thanks for posting. Removing
~/.pulumi
folder didn't help, only caused the need to recreate stack definitions. I still get following errors:
Copy code
#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:
    ------
102 Views