dazzling-sundown-39670
09/26/2025, 8:26 AMerror: unrecognized resource type (Check): docker-buildindexImage
echoing-dinner-19531
09/26/2025, 10:23 AMdazzling-sundown-39670
09/26/2025, 1:01 PM@pulumi/docker
package, and I wanted to start using @pulumi/docker-build
instead, so I installed that package and created a new resource alongside the old one with a new nameechoing-dinner-19531
09/26/2025, 2:51 PMdazzling-sundown-39670
09/27/2025, 12:14 PMimport * as docker from "@pulumi/docker";
import * as dockerBuild from "@pulumi/docker-build";
export const imageName = `backup:pulumi`;
const image = new docker.Image(
"backup-image",
{
imageName,
skipPush: true,
build: {
context: "../../",
platform: "linux/amd64",
dockerfile: "../../apps/backup/Dockerfile",
},
},
{ provider: dockerProvider },
);
export const image2 = new dockerBuild.Image(
"backup-image2",
{
tags: [imageName],
push: false,
dockerfile: {
location: "../../apps/backup/Dockerfile",
},
context: {
location: "../../",
},
platforms: ["linux/amd64"],
},
{ provider: dockerProvider },
);
dazzling-sundown-39670
09/27/2025, 12:15 PMimage
is my old one, I added image2
and ran pulumi up
just to see if it would workdazzling-sundown-39670
09/27/2025, 12:16 PM@pulumi/docker-build
in other stacks as well