@flowfuse/driver-docker 2.10.0 → 2.12.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 CHANGED
@@ -1,3 +1,11 @@
1
+ #### 2.12.0: Release
2
+
3
+
4
+ #### 2.11.0: Release
5
+
6
+ - Log the correct Stack Name when pulling image (#116) @hardillb
7
+ - Add "unless-stopped" flag to Instance containers (#115) @hardillb
8
+
1
9
  #### 2.10.0: Release
2
10
 
3
11
 
package/docker.js CHANGED
@@ -17,7 +17,10 @@ const createContainer = async (project, domain) => {
17
17
  AttachStdout: false,
18
18
  AttachStderr: false,
19
19
  HostConfig: {
20
- NetworkMode: this._network
20
+ NetworkMode: this._network,
21
+ RestartPolicy: {
22
+ Name: 'unless-stopped'
23
+ }
21
24
  }
22
25
  }
23
26
 
@@ -136,7 +139,7 @@ const createContainer = async (project, domain) => {
136
139
  }
137
140
 
138
141
  if (!containerFound) {
139
- this._app.log.info(`Container for stack ${stack.name} not found, pulling ${stack.container}`)
142
+ this._app.log.info(`Container for stack ${project.ProjectStack.name} not found, pulling ${stack.container}`)
140
143
  // https://github.com/apocas/dockerode/issues/703
141
144
  try {
142
145
  await new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/driver-docker",
3
- "version": "2.10.0",
3
+ "version": "2.12.0",
4
4
  "description": "Docker driver for FlowFuse",
5
5
  "main": "docker.js",
6
6
  "scripts": {