@Marvin I am using Prefect 3 locally using docker to run the server, and then for each flow, we deplpoy to docker (local). It was working before but now it's not after rebooting my machine. I think it's due to the DOCKER_HOST env variable (whcih is not set currently). I am on MacOS and Docker Desktop is running.
Flow deploy co
ctos_monitoring_list_flow.deploy(
name=config["name"],
work_pool_name="local-docker-work-pool",
work_queue_name="ctos-monitoring-list-queue",
image=DockerImage(
name="prefecthq/prefect", tag="3-latest", dockerfile="Dockerfile.worker"
),
parameters=config["params"],
cron=config["schedule"],
job_variables={"networks": ["dmp_default", "dmp-etl-prefect_default"]},
push=False,
build=True,
)
Error when trying to deploy:
The above exception was the direct cause of the following exception:
...
File "/Users/cdrum/Development/alternatives/dmp-etl-prefect/dmp-etl-venv/lib/python3.13/site-packages/prefect/utilities/dockerutils.py", line 166, in build_image
with docker_client() as client:
~~~~~~~~~~~~~^^
File "/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/contextlib.py", line 141, in __enter__
return next(self.gen)
File "/Users/cdrum/Development/alternatives/dmp-etl-prefect/dmp-etl-venv/lib/python3.13/site-packages/prefect/utilities/dockerutils.py", line 115, in docker_client
raise RuntimeError(
"This error is often thrown because Docker is not running. Please ensure Docker is running."
) from exc
RuntimeError: This error is often thrown because Docker is not running. Please ensure Docker is running.