This commit is contained in:
Girish Ramakrishnan
2025-05-27 17:47:36 +02:00
parent 46e6a048d4
commit 594a2e759a

View File

@@ -537,7 +537,7 @@ async function deleteContainers(appId, options) {
const labels = [ 'appId=' + appId ];
if (options.managedOnly) labels.push('isCloudronManaged=true');
const [error, containers] = await safe(gConnection.listContainers({ all: typeof options.all === 'undefined' ? 1 : options.all, filters: JSON.stringify({ label: labels }) }));
const [error, containers] = await safe(gConnection.listContainers({ all: 1, filters: JSON.stringify({ label: labels }) }));
if (error) throw new BoxError(BoxError.DOCKER_ERROR, error);
for (const container of containers) {