could someone point us in the right direction so t...
# prefect-getting-started
a
could someone point us in the right direction so that we can properly evaluate your solution?
a
Hey @aljaz! It looks like you’ve taken all of the correct steps to start a Docker worker. Can you share some more about what you’re finding difficult?
a
We get an error, something that server cannot be used as worker… it’s not a very helpful error (I can paste the exact message when I get to the computer)
The error is
RuntimeError: Docker worker cannot be used with an ephemeral server.
@alex Any ideas?
j
Hey @aljaz! Sounds like you are using a self-hosted Prefect server instance and not Prefect Cloud. If that’s your setup, you can run the following:
Copy code
prefect config set PREFECT_API_URL="<http://127.0.0.1:4200/api>"
More details here.
upvote 1
a
In addition to @Jeff Hale’s suggestion, you can run
prefect server start
to run an instance of the Prefect server API locally which your worker will be able to communicate with.