https://prefect.io logo
Title
l

Lana Dann

03/21/2022, 5:59 PM
hey y’all can you let me know if i’m missing something? i’m building a docker image based on the prefect image
FROM prefecthq/prefect:latest-python3.9
but when i start up my container and try to use the prefect cli, it says prefect isn’t installed
$ prefect
/bin/sh: 5: prefect: not found
k

Kevin Kho

03/21/2022, 6:13 PM
Man…that…is very weird. Let me try this
So I cannot replicate this when I do:
docker run -it prefecthq/prefect:latest-python3.9 bash
. And then try
prefect
. Does this also not work for you?
a

Anna Geller

03/21/2022, 7:35 PM
you need to add Prefect to your Python PATH - try this on Linux:
PATH="$HOME/.local/bin:$PATH"
export PATH
l

Lana Dann

03/23/2022, 3:32 PM
thanks! i realized there was an error in my docker commands and i wasn’t starting the container that i was building with prefect 🤦‍♀️ sorry about that
k

Kevin Kho

03/23/2022, 3:33 PM
No worries! Glad you got it figured out!