Skip to content

Commit

Permalink
Update networks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cplepage authored Jul 17, 2023
1 parent 3953a19 commit 0432a9a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ async function up(docker, projectName, recipe, output) {
}
continue;
}
if (network.external === true) continue;
if (network.external === true) {
let returnedNetwork = await docker.listNetworks({
filters: { name: [ network.name || (projectName + '_' + networkName) ] },
});
networks.push({
name: projectName + '_' + networkName,
network: await docker.getNetwork(returnedNetwork[0].Id),
});
continue;
};
var opts = {
Name: projectName + '_' + networkName,
Driver: network.driver,
Expand Down

0 comments on commit 0432a9a

Please sign in to comment.