diff --git a/src/platform.js b/src/platform.js index 6fb6d1615..96e976bd5 100644 --- a/src/platform.js +++ b/src/platform.js @@ -51,9 +51,11 @@ async function start(options) { for (let attempt = 0; attempt < 5; attempt++) { try { - if (existingInfra.version !== infra.version) await removeAllContainers(); + if (existingInfra.version !== infra.version) { + await removeAllContainers(); + await createDockerNetwork(); + } if (existingInfra.version === 'none') await volumes.mountAll(); // when restoring, mount all volumes - await createDockerNetwork(); await markApps(existingInfra, options); // mark app state before we start addons. this gives the db import logic a chance to mark an app as errored await services.startServices(existingInfra); await fs.promises.writeFile(paths.INFRA_VERSION_FILE, JSON.stringify(infra, null, 4));