Back to Prefect

prefect-docker

docs/integrations/prefect-docker/index.mdx

3.6.30.dev31.0 KB
Original Source

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.

bash
pip install "prefect[docker]"

Upgrade to the latest versions of prefect and prefect-docker:

bash
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.