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@pulumi/docker 56 changes
Breaking changes 2
The docker_compose resource was removed, so configurations using it must be migrated.
The docker service default patch was removed, potentially changing default resource behavior.
Behavior and default changes 3
Upgraded the Docker Terraform provider to v4.6.0, which may affect Docker resource behavior.
BuildKit session failures are logged as warnings instead of errors.
The repoDigest output now prefers the digest returned by the push response.
Tooling 1
Upgraded the underlying Docker Terraform provider to v4.2.0.
@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.
Build.CacheFrom no longer accepts a boolean; specify images in Build.CacheFrom.Images to use them as build cache.
A list of images to use as build cache, replacing Build.CacheFrom.Stages.
Digest is removed in this release.
The C# type Docker.DockerBuild is renamed to Docker.Inputs.DockerBuildArgs.
The C# type Docker.ImageRegistry is renamed to Docker.Inputs.RegistryArgs.
The Go type docker.ImageRegistry is renamed to docker.Registry.
The Python type DockerBuild is renamed to DockerBuildArgs.
ImageName must use fully qualified repository format; the tag defaults to :latest, and Docker.io is no longer inferred automatically.
Images are no longer built during preview, reducing preview time.
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.
The Python type ImageRegistry is renamed to RegistryArgs.
Deprecations 5
Build.CacheFrom.Stages is deprecated and replaced by Build.CacheFrom.Images.
Env is deprecated; use Build.BuilderVersion instead of setting DOCKER_BUILDKIT=1 for the Docker CLI.
ExtraOptions is deprecated; its CLI flags are being implemented as top-level fields, including Build.Platform, Build.Target, and Build.CacheFrom.
Id is deprecated; use ImageName for a unique identifier.
LocalImageName is deprecated; use ImageName with SkipPush:true.
New APIs and options 3
Build.BuilderVersion selects the builder and defaults to BuilderBuildKit; set it to BuilderV1 to use the classic Docker builder.
Specify a target platform for the image build; this field currently supports a single value, not a list.
The Image resource now supports Java and YAML.
Performance 1
Images can access local cache layers, improving build time.
Behavior and default changes 4
Plugins are pinned, which may affect provider plugin resolution when running deployments.
An image is not rebuilt if its build context has not changed.
The Image resource is now a full Pulumi Custom Resource and uses the docker-go client library instead of invoking the Docker CLI.
Build and push logs are streamed to the Pulumi build output.
Fixes and other changes 1
Fixes 403 Forbidden errors on Docker Hub when using Go 1.25.