prefect_docker.containers
Integrations with Docker Containers.
Functions
create_docker_container
image: The image to run.command: The command(s) to run in the container.name: The name for this container.detach: Run container in the background.docker_host: Settings for interacting with a Docker host.entrypoint: The entrypoint for the container.environment: Environment variables to set inside the container, as a dictionary or a list of strings in the format [“SOMEVARIABLE=xxx”].**create_kwargs: Additional keyword arguments to pass toclient.containers.create.
- A Docker Container object.
get_docker_container_logs
container_id: The container ID to pull logs from.docker_host: Settings for interacting with a Docker host.**logs_kwargs: Additional keyword arguments to pass toclient.containers.get(container_id).logs.
- The Container’s logs.
start_docker_container
container_id: The container ID to start.docker_host: Settings for interacting with a Docker host.**start_kwargs: Additional keyword arguments to pass toclient.containers.get(container_id).start.
- The Docker Container object.
stop_docker_container
container_id: The container ID to stop.docker_host: Settings for interacting with a Docker host.**stop_kwargs: Additional keyword arguments to pass toclient.containers.get(container_id).stop.
- The Docker Container object.
remove_docker_container
container_id: The container ID to remove.docker_host: Settings for interacting with a Docker host.**remove_kwargs: Additional keyword arguments to pass toclient.containers.get(container_id).remove.
- The Docker Container object.