unstale

npm / @pulumi/docker

@pulumi/docker

What changed in @pulumi/docker 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

14 breaking5 deprecations3 new APIs and options1 performance7 behavior and defaults1 tooling1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@pulumi/docker 56 changes

Breaking changes 2

  • The docker_compose resource was removed, so configurations using it must be migrated.

    5.1.0release notes

  • The docker service default patch was removed, potentially changing default resource behavior.

    5.1.0release notes

Behavior and default changes 3

  • Upgraded the Docker Terraform provider to v4.6.0, which may affect Docker resource behavior.

    5.2.0release notes

  • BuildKit session failures are logged as warnings instead of errors.

    5.1.0release notes

  • The repoDigest output now prefers the digest returned by the push response.

    5.1.0release notes

Tooling 1

  • Upgraded the underlying Docker Terraform provider to v4.2.0.

    5.0.0release notes

@pulumi/docker 426 changes

Breaking changes 12

  • Build is no longer required and defaults to using the current directory as build context; a custom build context must use Build.Context rather than a string.

    4.0.0release notes

  • Build.CacheFrom no longer accepts a boolean; specify images in Build.CacheFrom.Images to use them as build cache.

    4.0.0release notes

  • A list of images to use as build cache, replacing Build.CacheFrom.Stages.

    4.0.0release notes

  • Digest is removed in this release.

    4.0.0release notes

  • The C# type Docker.DockerBuild is renamed to Docker.Inputs.DockerBuildArgs.

    4.0.0release notes

  • The C# type Docker.ImageRegistry is renamed to Docker.Inputs.RegistryArgs.

    4.0.0release notes

  • The Go type docker.ImageRegistry is renamed to docker.Registry.

    4.0.0release notes

  • The Python type DockerBuild is renamed to DockerBuildArgs.

    4.0.0release notes

  • ImageName must use fully qualified repository format; the tag defaults to :latest, and Docker.io is no longer inferred automatically.

    4.0.0release notes

  • Images are no longer built during preview, reducing preview time.

    4.0.0release notes

  • A one-time manual stack update using pulumi state delete may be required when upgrading because the new Image resource is associated with a provider differently.

    4.0.0release notes

  • The Python type ImageRegistry is renamed to RegistryArgs.

    4.0.0release notes

Deprecations 5

  • Build.CacheFrom.Stages is deprecated and replaced by Build.CacheFrom.Images.

    4.0.0release notes

  • Env is deprecated; use Build.BuilderVersion instead of setting DOCKER_BUILDKIT=1 for the Docker CLI.

    4.0.0release notes

  • ExtraOptions is deprecated; its CLI flags are being implemented as top-level fields, including Build.Platform, Build.Target, and Build.CacheFrom.

    4.0.0release notes

  • Id is deprecated; use ImageName for a unique identifier.

    4.0.0release notes

  • LocalImageName is deprecated; use ImageName with SkipPush:true.

    4.0.0release notes

New APIs and options 3

  • Build.BuilderVersion selects the builder and defaults to BuilderBuildKit; set it to BuilderV1 to use the classic Docker builder.

    4.0.0release notes

  • Specify a target platform for the image build; this field currently supports a single value, not a list.

    4.0.0release notes

  • The Image resource now supports Java and YAML.

    4.0.0release notes

Performance 1

  • Images can access local cache layers, improving build time.

    4.0.0release notes

Behavior and default changes 4

  • Plugins are pinned, which may affect provider plugin resolution when running deployments.

    4.11.1release notes

  • An image is not rebuilt if its build context has not changed.

    4.0.0release notes

  • The Image resource is now a full Pulumi Custom Resource and uses the docker-go client library instead of invoking the Docker CLI.

    4.0.0release notes

  • Build and push logs are streamed to the Pulumi build output.

    4.0.0release notes

Fixes and other changes 1

  • Fixes 403 Forbidden errors on Docker Hub when using Go 1.25.

    4.11.2release notes