fix: update Docker network creation command to support overlay driver for stack deployments

This commit is contained in:
Mauricio Siu 2025-05-10 02:13:57 -06:00
parent 25e1a9af57
commit 32405fc61a

View File

@ -35,7 +35,7 @@ export const buildCompose = async (compose: ComposeNested, logPath: string) => {
if (compose.isolatedDeployment) {
await execAsync(
`docker network inspect ${compose.appName} >/dev/null 2>&1 || docker network create --attachable ${compose.appName}`,
`docker network inspect ${compose.appName} >/dev/null 2>&1 || docker network create ${composeType === "stack" ? "--driver overlay" : ""} --attachable ${compose.appName}`,
);
}