I am trying to run the orion server inside a docker container, but I can’t get it to work.
This is my command:
docker run --platform linux/amd64 -ti -p 4200:4200 --expose=4200 prefecthq/prefect:2.0.1-python3.9
Once my container is ready, I execute
prefect orion start
inside of it
I see the in the logs that the server successfully started, however I don’t get a connection when I open http://localhost:4200 in my browser.
a
Anna Geller
07/31/2022, 7:29 PM
can you try in a virtual environment instead? running in docker is a bit harder with networking, bind mounting volumes, ...
m
Marius Haberstock
07/31/2022, 7:32 PM
Just got it to work 😄
I now run
prefect orion start --host 0.0.0.0
inside the container
🙌 2
a
Anna Geller
07/31/2022, 7:33 PM
yes that works, but unless you mount a volume, you can't run anything against it?
m
Marius Haberstock
07/31/2022, 7:36 PM
I haven’t tried yet, just saw the UI and was happy 😂
I plan to use an external postgres db, so as long as I provide the connection string I don’t need a volume, right?
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.