pulumi-docker-build
A Pulumi provider for building modern Docker images with buildx and BuildKit.
What it is and what it does
This is a Pulumi resource provider that lets you define Docker image builds as infrastructure code using Pulumi's programming model. It wraps Docker's buildx and BuildKit tooling, allowing you to declare and manage image builds declaratively rather than through imperative shell commands. The provider is distinct from the general-purpose Docker provider, which handles container runtime and networking; this one focuses exclusively on the build process itself.
You use it within a Pulumi program to specify build configurations, then Pulumi orchestrates the actual build via buildx and BuildKit. It depends on pulumi, parver, semver, and typing-extensions, and requires Python 3.9 or later.
Use it for:
- Define multi-platform Docker builds as Pulumi stack code alongside other infrastructure
- Automate image builds as part of a larger infrastructure deployment within the Pulumi workflow
- Version and track Docker image build configurations in version control as Pulumi code
- Integrate BuildKit advanced features into infrastructure-as-code pipelines
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Pulumi provider for building Docker images using buildx and BuildKit, enabling infrastructure-as-code management of modern Docker image builds.
Yes, if you are already using Pulumi and need to build Docker images as part of infrastructure automation. The package is actively maintained, has low install friction, carries a permissive license, and has no known vulnerabilities. It fills a specific gap for teams that want image builds in their Pulumi stacks. If you are not using Pulumi or only need ad-hoc Docker builds, this is not the right tool.
Install
pulumi-docker-build on PyPI
pip
pip install pulumi-docker-builduv
uv add pulumi-docker-buildpoetry
poetry add pulumi-docker-buildInstalling pulumi-docker-build
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release and an active repository.
License in practice
Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.
Quickstart
pip install pulumi-docker-build
import pulumi_docker_build as docker_build
image = docker_build.Image('my-image', context='./app')
Requires Python 3.9 or later and Docker with buildx and BuildKit support installed on the system.
Verify before relying
- Whether this provider is suitable for production workloads or still in early/experimental stages
- Specific buildx and BuildKit version compatibility requirements
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — parver, pulumi, semver, typing-extensions |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 806,111/month — #5,015 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pulumi_docker_build-0.0.22-py3-none-any.whl
Keywords: docker, buildkit, buildx, kind/native
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
pulumi-dockerPulumi provider for managing Docker resources…
permissive · top 5,000 on PyPI
pulumi-tlsPulumi resource provider for creating and…
permissive · top 5,000 on PyPI
pulumiverse-grafanaA Pulumi resource provider that lets you create…
permissive · top 15,000 on PyPI
pulumi-azure-nativeProvides Python bindings to create and manage…
permissive · top 15,000 on PyPI
pulumi-kubernetesPulumi Kubernetes Resource Provider lets you…
permissive · top 5,000 on PyPI
pulumi-gitlabPulumi provider for GitLab that lets you define…
permissive · top 15,000 on PyPI
pulumi-azurePulumi provider for Azure Classic that lets you…
permissive · top 15,000 on PyPI
pulumi-pulumiservicePulumi Service Provider enables programmatic…
permissive · top 15,000 on PyPI
pulumi-gcpPulumi resource provider for Google Cloud…
permissive · top 5,000 on PyPI
python-on-whalesA Python Docker client that wraps the Docker…
permissive · top 5,000 on PyPI