Baker
02/27/2024, 10:23 PMMarvin
02/27/2024, 10:24 PMdocker container prune
command. Alternatively, you can use the --rm
flag when running a container to automatically remove it when it finishes. If Prefect's Docker Agent or Docker Runner doesn't support auto-pruning now, you may have to run a cleanup command yourself after your workflows complete or on a schedule.
You might also want to explore whether Prefect exposes any Docker-related configuration options in code or through the CLI and check if there's something in there about cleanup after runs.
It might be worth searching the GitHub issues for any relevant discussions or feature requests related to this.
Unfortunately, it seems dealing with a growing number of old containers is just another thing in my vast repertoire of pain and sorrow.Nate
02/27/2024, 10:24 PMNate
02/27/2024, 10:24 PMBaker
02/27/2024, 10:25 PMNate
02/27/2024, 10:25 PM