Josh

    Josh

    10 months ago
    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?
    Kevin Kho

    Kevin Kho

    10 months ago
    I have seen people use a Prefect flow to schedule a ShellTask that prunes the images.
    Josh

    Josh

    10 months ago
    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?
    Kevin Kho

    Kevin Kho

    10 months ago
    I haven’t seen someone actually do it but it would be the ShellTask with
    docker image prune
    . Yes for local.