The prefect-docker library is required to create deployments that will submit runs to most Prefect work pool infrastructure types.

Getting started

Prerequisites

Install prefect-docker

The following command will install a version of prefect-docker compatible with your installed version of prefect. If you don’t already have prefect installed, it will install the newest version of prefect as well.
pip install "prefect[docker]"
Upgrade to the latest versions of prefect and prefect-docker:
pip install -U "prefect[docker]"

Examples

See the Prefect Workers docs to learn how to create and run deployments that use Docker.

Resources

For assistance using Docker, consult the Docker documentation. Refer to the prefect-docker SDK documentation to explore all the capabilities of the prefect-docker library.