prefect-docker
Prefect integrations for interacting with Docker.
Decision gist · record as of 2026-08-14
Yes, if you use Prefect and need to run tasks in Docker containers. It's actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. The integration is part of the official Prefect ecosystem. Install it when containerized task execution is part of your workflow design; skip it if you run all tasks in-process.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Docker daemon running locally or accessible via docker socket; requires Prefect to be installed and configured.
- Low install friction with a pure-Python wheel.
- Active maintenance—last commit 2026-08-14, released 30 days ago.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-07-15 (30 days) · last repo commit 2026-08-14 · 23,623 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,275,795 downloads/mo, #3,172 on PyPI
Alternatives
Verify before relying
pip install prefect-docker
from prefect_docker import DockerContainer
from prefect import flow, task
@task
def my_task():
return "Hello from Docker"
@flow
def my_flow():
my_task.with_options(container=DockerContainer()).submit()- Specific Docker API features or container orchestration patterns this integration supports beyond basic task execution.
- Whether this package handles Docker networking, volume mounting, or environment variable injection for containerized tasks.
- Performance characteristics or scaling limits when running many concurrent Docker-based tasks.
What it is and what it does
prefect-docker is an official integration that extends Prefect's workflow orchestration to execute tasks inside Docker containers. It bridges the Prefect task execution model with Docker's containerization, letting you define and run workflow steps as isolated container workloads rather than in-process Python functions. The package wraps Docker and python-on-whales to manage container lifecycle and communication.
This is useful when you need task isolation, dependency management, or reproducible execution environments within a Prefect workflow. You define tasks normally in Prefect, then specify Docker container configuration to run them containerized. The integration handles container creation, execution, and cleanup as part of the Prefect task lifecycle.
Use it for
- Run Prefect tasks in isolated Docker containers to avoid dependency conflicts between workflow steps.
- Execute workflow tasks with specific OS or system library requirements inside a container image.
- Ensure reproducible task execution across different environments by containerizing task logic.
- Integrate legacy or third-party applications into Prefect workflows by wrapping them in Docker containers.
- Distribute task execution across container orchestration platforms by using Docker as the execution backend.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Prefect and need to run tasks in Docker containers.
It's actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. The integration is part of the official Prefect ecosystem. Install it when containerized task execution is part of your workflow design; skip it if you run all tasks in-process.
Install
prefect-docker on PyPI
Before you install
Low install friction with a pure-Python wheel. Active maintenance—last commit 2026-08-14, released 30 days ago. Supports Python 3.10 through 3.13. Depends on prefect, docker, exceptiongroup, and python-on-whales; all are standard ecosystem packages.
Requires Docker daemon running locally or accessible via docker socket; requires Prefect to be installed and configured.
License in practice
Licensed under Apache License 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install prefect-docker
from prefect_docker import DockerContainer
from prefect import flow, task
@task
def my_task():
return "Hello from Docker"
@flow
def my_flow():
my_task.with_options(container=DockerContainer()).submit()
Verify before relying
- Specific Docker API features or container orchestration patterns this integration supports beyond basic task execution.
- Whether this package handles Docker networking, volume mounting, or environment variable injection for containerized tasks.
- Performance characteristics or scaling limits when running many concurrent Docker-based tasks.
Package facts
| License | Apache License 2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesprefectdockerexceptiongrouppython-on-whales |
| Maintenance | Actively maintained 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,275,795 / month, #3,172 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries |
Evidence: prefect_docker-0.7.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “prefect docker integration”
- prefect-dockerProvides Docker task execution and container management integrations…
- prefect-emailProvides Prefect workflow integration for sending emails, enabling…
- prefect-githubProvides Prefect workflow tasks and blocks for interacting with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also prefect-azure · prefect-shell · prefect-ray · prefect-gcp · prefect-dbt · prefect-dask · prefect-redis · prefect-gitlab · prefect-client · prefect-cloud