https://prefect.io logo
k

Kevin Weiler

11/19/2020, 6:14 PM
hi prefecters - I’m having an issue with docker storage. I’m using a base image that has the environment and all the necessary code to run my flow. This is a conda environment that has prefect installed. When I attempt to store the flow container, it tries to install prefect over top of my conda installed version. This issue is compounded by the fact that the environment is owned by root and not the user of the container. Is there some way to tell prefect to not install the prefect package via pip?
d

Dylan

11/19/2020, 6:18 PM
Hey @Kevin Weiler! Mind sharing your storage code here?
k

Kevin Weiler

11/19/2020, 6:19 PM
sure thing
Copy code
flow.storage = Docker(
                base_image="<REDACTED>:local",
                local_image=True,
                ignore_healthchecks=True,
                registry_url="<REDACTED>/prefect/",

            )
d

Dylan

11/19/2020, 6:19 PM
If I don’t find anything obvious I think this may be a good GitHub issue. Prefect does some work to ensure it’s installed in an expected place in the container and I’m not sure we’ve made that configurable.
k

Kevin Weiler

11/19/2020, 6:20 PM
cool - I’ll give a look and make sure there isn’t already a ticket
d

Dylan

11/19/2020, 6:21 PM
Great, thanks!