Channels
pacc-july-11-12-2023
pacc-sept-20-21-2023
pacc-aug-16-2023
pacc-aug-29-30-2023
pacc-may-31-2023
prefect-ai
pacc-sept-26-27-2023
pacc-clearcover-june-12-2023
pacc-july-6-2023
intros-test
livestream-chatter
marvin-in-the-wild
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
pacc-london-2023
pacc-sept-13-14-2023
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
pacc-july-17-18-2023
introductions
prefect-server
data-tricks-and-tips
prefect-aws
prefect-gcp
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-ui
prefect-kubernetes
pacc-aug-22-23-2023
prefect-community
Powered by
#prefect-community
Title
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?
would love to try that
didn’t think about prefect calling out to the shell on the vm it was running on
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.
3 Views
Post