fix: only remove coolify managed containers
This commit is contained in:
parent
e861c3fc0f
commit
5d43ea551a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user