Hello, I've been running into this error trying to login to prefect cloud via docker image.
The Dockerfile is simple:
FROM prefecthq/prefect:2.3.2-python3.10
RUN prefect cloud login -k <my api key>
I get the following attached error when running docker build .
I tried using different prefect images with different prefect2 and python versions, but get the same error.
Any idea what could be causing this?
✅ 1
n
Nico Neumann
09/13/2022, 6:15 PM
I ran into the same problem. Running those commands instead fixed it for me:
prefect config set PREFECT_API_KEY=...
prefect config set PREFECT_API_URL=...
j
Jehan Abduljabbar
09/13/2022, 6:36 PM
Thank you so much!
r
Ryan Peden
09/13/2022, 8:06 PM
To follow up on the cause: the
prefect cloud login
command expects an interactive terminal, because it asks you to pick a workspace and then enter a profile name.
The Docker build environment doesn't provide
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.