Skip to content

Commit 937bb01

Browse files
committed
WIP: compare complex networks
1 parent d3742e7 commit 937bb01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/networks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ module.exports = async function (docker, projectName, recipe, output) {
4545
}
4646
}
4747
try {
48-
networks.push(await docker.createNetwork(opts));
48+
networks.push({ "name": projectName + '_' + networkName, "network": await docker.createNetwork(opts) });
4949
} catch (err) {
50+
//if exists we have to compare with the existing network
5051
throw err;
5152
}
5253
}

0 commit comments

Comments
 (0)