https://prefect.io logo
Title
e

Efraim Globus

05/02/2022, 8:44 AM
Hi, I am trying to configure a flow that will run in a docker image and will be executed by a docker agent. The flow was configured successfully. I started a docker image from my machine and triggered a run via the ui in the prefect cloud. I got the following error message: ā€œ`run_config` of type
DockerRun
, only
LocalRun
is supported ā€ what does it mean?
with Flow("iris_batch", storage=Local(path="/app/batch/flow.py",stored_as_script=True),
          run_config=DockerRun(image="test:latest")
          ) as batch_prediction_flow:
What i am missing? Amy help will be appreciated:) Thank you!
a

Anna Geller

05/02/2022, 10:21 AM
looks like you started a local agent rather than a Docker agent? also, local results are meant for local execution on your local machine or VM, for Docker run you may use Prefect result or some object storage like S3
e

Efraim Globus

05/02/2022, 12:38 PM
Thanks for your quick reply!
looks like you started a local agent rather than a Docker agent?
I started a local docker agent
also, local results are meant for local execution on your local machine or VM, for Docker run you may use Prefect result or some object storage like S3
Do you mean that i should avoid using
storage=Local
combined with
DockerRun
? Thanks again for your help!
a

Anna Geller

05/02/2022, 12:57 PM
Yup exactly!
šŸ™ 1
e

Efraim Globus

05/03/2022, 6:02 PM
Hi:) I suspect the issue was that i had also local agent running and the error was because prefect attempted to use the local agent. Anyway, local storage works fine with docker Thanks:)
a

Anna Geller

05/03/2022, 7:03 PM
Nice work and thanks for reporting back!