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 return
} }
try { try {
await executeDockerCmd({ dockerId, command: `docker container prune -f` }) await executeDockerCmd({ dockerId, command: `docker container prune -f --filter "label=coolify.managed=true"` })
} catch (error) { } catch (error) {
//console.log(error); //console.log(error);
} }