Skip to content

Commit

Permalink
Merge pull request #22 from benoitf/GH-20
Browse files Browse the repository at this point in the history
fix: handle another error thrown by Docker on unknown network
  • Loading branch information
hguerrero authored Jun 26, 2023
2 parents fbfc789 + 947e6a9 commit 927a51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/api/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function ensureNetworkExists(): Promise<boolean> {
try {
networkResult = await ddClient.docker.cli.exec("network", ["inspect", EXTENSION_NETWORK]);
} catch (e: any) {
if (e.stderr !== undefined && (e.stderr.includes('No such network'))) {
if (e.stderr?.includes('No such network') || e.stderr?.includes('not found')) {
// Create missing network for our extension.
console.info('Creating a bridge network for extension.');
try {
Expand Down

0 comments on commit 927a51c

Please sign in to comment.