Improve waiting for dns screen

This commit is contained in:
Johannes Zellner
2025-05-27 13:55:36 +02:00
parent ac9ffa3f0f
commit 6adf26f4d9
2 changed files with 19 additions and 10 deletions

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: options.all, filters: JSON.stringify({ label: labels }) }));
const [error, containers] = await safe(gConnection.listContainers({ all: typeof options.all === 'undefined' ? 1 : options.all, filters: JSON.stringify({ label: labels }) }));
if (error) throw new BoxError(BoxError.DOCKER_ERROR, error);
for (const container of containers) {