- Port forward the server to your local machine (e.g.
-p 4200:4200) - Set the
--hostflag on theprefect server startcommand to0.0.0.0 - Set the API server address,
PREFECT_API_URL, to use Prefect within a container.
The
-d flag runs the container in detached mode (i.e. in the background) and the --rm flag removes the container once it is stopped.prefect profile is configured to point at your containerized server.