fix: only remove coolify managed containers

This commit is contained in:
Andras Bacsai 2022-08-11 12:08:44 +00:00
parent e861c3fc0f
commit 5d43ea551a

View File

@ -1614,7 +1614,7 @@ export async function cleanupDockerStorage(dockerId, lowDiskSpace, force) {
return
}
try {
await executeDockerCmd({ dockerId, command: `docker container prune -f` })
await executeDockerCmd({ dockerId, command: `docker container prune -f --filter "label=coolify.managed=true"` })
} catch (error) {
//console.log(error);
}