I then changed the storage to `DockerStorage`, whi...
# ask-community
t
I then changed the storage to
DockerStorage
, which again I got to work. I was just wondering though, does the use of the
DockerRun
class do anything when I am using
DockerStorage
? At first glance, it would seem not as the use of
DockerStorage
would imply the run would run on docker anyway. Am I missing something?
a
Hi @Thomas Furmston! Storage is telling Prefect where to find your flow (this could be a Git repo, cloud storage, or baked into a Docker image), while run configuration such as DockerRun provides metadata for the execution environment - this could be: cpu/memory resources, environment variables, etc. But I see why it may be confusing for you, since Docker storage allows to specify things like python dependencies which relate to the execution environment.
t
I see.
Yeah, it is a bit confusing because, for example,
DockerRun
allows you to specify the docker image. However, if you specify
DockerStorage
then this setting from
DockerRun
is ignored.
Are there any settings from
DockerRun
that do carry over and are used when you also specify
DockerStorage
?
a
Yes, e.g. the environment variables and labels
t
I see. Yes, that makes sense now.
👍 1
Thanks