@flowfuse/driver-docker 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/docker.js +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/docker.js
CHANGED
|
@@ -98,8 +98,13 @@ const createContainer = async (project, domain) => {
|
|
|
98
98
|
|
|
99
99
|
const containerList = await this._docker.listImages()
|
|
100
100
|
let containerFound = false
|
|
101
|
+
let stackName = stack.container
|
|
102
|
+
// add ":latest" to stack containers with no tag
|
|
103
|
+
if (stackName.indexOf(':') === -1) {
|
|
104
|
+
stackName = stackName + ':latest'
|
|
105
|
+
}
|
|
101
106
|
for (const cont of containerList) {
|
|
102
|
-
if (cont.RepoTags.includes(
|
|
107
|
+
if (cont.RepoTags.includes(stackName)) {
|
|
103
108
|
containerFound = true
|
|
104
109
|
break
|
|
105
110
|
}
|
|
@@ -474,7 +479,7 @@ module.exports = {
|
|
|
474
479
|
const properties = {
|
|
475
480
|
cpu: 10,
|
|
476
481
|
memory: 256,
|
|
477
|
-
container: 'flowfuse/node-red',
|
|
482
|
+
container: 'flowfuse/node-red:latest',
|
|
478
483
|
...this._app.config.driver.options?.default_stack
|
|
479
484
|
}
|
|
480
485
|
|