Skip to content

Commit

Permalink
Docker compose: Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale committed Oct 19, 2023
1 parent 71180e7 commit 5ce1f6c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/spec-node/dockerCompose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,13 @@ async function startContainer(params: DockerResolverParameters, buildParams: Doc
}
} catch (err) {
cancel!();
throw new ContainerError({ description: 'An error occurred starting Docker Compose up.', originalError: err, data: { fileWithError: localComposeFiles[0] } });

let description = 'An error occurred starting Docker Compose up.';
if (err?.cmdOutput?.includes('Cannot create container for service app: authorization denied by plugin')) {
description = err.cmdOutput;
}

throw new ContainerError({ description, originalError: err, data: { fileWithError: localComposeFiles[0] } });
}

await started;
Expand Down

0 comments on commit 5ce1f6c

Please sign in to comment.