Join Slack
Powered by
Is there a way to automatically prune old images f...
# ask-community
j
Josh
11/11/2021, 10:44 PM
Is there a way to automatically prune old images from a prefect docker agent to free up space on the box running my prefect flows?
k
Kevin Kho
11/11/2021, 11:37 PM
I have seen people use a Prefect flow to schedule a ShellTask that prunes the images.
j
Josh
11/12/2021, 12:01 AM
any examples?
Josh
11/12/2021, 12:01 AM
would love to try that
Josh
11/12/2021, 12:01 AM
didn’t think about prefect calling out to the shell on the vm it was running on
Josh
11/12/2021, 12:01 AM
I’m assuming you’d want to use local agent for that?
k
Kevin Kho
11/12/2021, 12:03 AM
I haven’t seen someone actually do it but it would be the ShellTask with
docker image prune
. Yes for local.
10
Views
Open in Slack
Previous
Next