Hi! I am experimenting with the local prefect serv...
# prefect-community
m
Hi! I am experimenting with the local prefect server. I know how to start it but how do I stop it?
z
Hi @Mikael,
ctrl + c
should do the trick!
m
Thanks! But I mean all the docker services. The terminal just responds that the serivices is running when I am starting. The containers are still running even when I shut down the terminal
z
Ah! Apologies for that misunderstanding-- let me take a look.
Generally speaking, I'd expect Prefect Server components to spin down when you exit your terminal, but it sounds like in this case, closing your session didn't close your active processes. I'll keep an eye out for this, but your best bet in the meantime is to remove those containers using the Docker CLI or desktop app.
a
What worked for me was to 'prefect server start' , let it attach to the container logging, then Ctrl c to trigger a graceful shutdown.