fix: Cleanup old images, > 3 days

This commit is contained in:
Andras Bacsai 2022-02-28 10:12:04 +01:00
parent 160412f6e4
commit 88b3910d80

View File

@ -44,12 +44,12 @@ export default async function () {
} catch (error) {
console.log(error);
}
}
// Cleanup dangling images
// Cleanup old images >3 days
try {
await asyncExecShell(`DOCKER_HOST=${host} docker image prune -f`);
await asyncExecShell(`DOCKER_HOST=${host} docker image prune --filter "until=72h" -a -f`);
} catch (error) {
console.log(error);
}
}
}
}