Skip to content

Commit

Permalink
Update docker.js
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen McLaughlin <[email protected]>
  • Loading branch information
hardillb and Steve-Mcl authored Jul 15, 2024
1 parent 91b9e89 commit e83dead
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,12 @@ module.exports = {
this._app.log.info('[docker] unable to find network')
process.exit(-9)
}
} else {
} else if (networks.length === 1) {
this._app.log.info(`[docker] using network ${networks[0].Name}`)
this._network = networks[0].Name
} else {
this._app.log.info('[docker] unable to find network')
process.exit(-9)
}

// Get a list of all projects - with the absolute minimum of fields returned
Expand Down

0 comments on commit e83dead

Please sign in to comment.