Hello, I'm experiencing an error while trying to r...
# ask-community
p
Hello, I'm experiencing an error while trying to run a Prefect worker in a Docker container. Here are the details: Command being used:
docker run -d \
--name prefect-worker \
-v /var/run/docker.sock:/var/run/docker.sock \
-e PREFECT_API_URL=<https://api.prefect.cloud/api/accounts/xxxxxx/workspaces/xxxxxx> \
-e PREFECT_API_KEY=xxxxx \
--restart always \
--pull always \
prefecthq/prefect:3-python3.10 \
prefect worker start \
--pool dev-docker-pool \
--type docker
Error message received: Unable to start worker. Please ensure you have the necessary dependencies installed to run your desired worker type. Could you please help me identify what dependencies are missing and how to resolve this issue?
n
hi @pengxuan you need prefect-docker in your container to run a docker worker. just add
—install-policy always
to your worker start command
1
prefect rocket 1