Hey all! :wave: I'm currently hitting this bug on ...
# golang
g
Hey all! 👋 I'm currently hitting this bug on a new stack: https://github.com/pulumi/pulumi-docker/issues/320 Does anyone have a workaround? Here's my
main.go
file if helpful:
Copy code
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Build the container image
		image, err := docker.NewImage(ctx, "trustified-api", &docker.ImageArgs{
			Build: &docker.DockerBuildArgs{
				Context:    pulumi.String("../"),
				Dockerfile: pulumi.String("dev.Dockerfile"),
			},
			ImageName: pulumi.String("trustified-api:dev"),
			SkipPush:  pulumi.Bool(true),
		})
		if err != nil {
			fmt.Printf("Error building image: %s", err.Error())
		}
		ctx.Export("baseImageName", image.BaseImageName)
		ctx.Export("fullImageName", image.ImageName)
		return nil
	})
}
Error message (so you don't have to click the github link):
Copy code
Diagnostics:
  pulumi:pulumi:Stack (trustified-api-dev):
    error: program failed: waiting for RPCs: unexpected unknown property value for "registryServer"
    exit status 1
pulumi version v3.32.1
Workaround: Add
Copy code
Registry:  docker.ImageRegistryArgs{},
to the docker ImageArgs prevents the error. Solution found in this github issue: https://github.com/pulumi/pulumi-docker/issues/308