Change restart policy to unless-stopped
This commit is contained in:
@@ -1722,3 +1722,6 @@
|
|||||||
[4.3.2]
|
[4.3.2]
|
||||||
* Update manifestformat module
|
* Update manifestformat module
|
||||||
|
|
||||||
|
[4.3.3]
|
||||||
|
* Fix bug where stopped containers got started on server restart
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -299,7 +299,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
|
|||||||
PublishAllPorts: false,
|
PublishAllPorts: false,
|
||||||
ReadonlyRootfs: app.debugMode ? !!app.debugMode.readonlyRootfs : true,
|
ReadonlyRootfs: app.debugMode ? !!app.debugMode.readonlyRootfs : true,
|
||||||
RestartPolicy: {
|
RestartPolicy: {
|
||||||
'Name': isAppContainer ? 'always' : 'no',
|
'Name': isAppContainer ? 'unless-stopped' : 'no',
|
||||||
'MaximumRetryCount': 0
|
'MaximumRetryCount': 0
|
||||||
},
|
},
|
||||||
CpuShares: 512, // relative to 1024 for system processes
|
CpuShares: 512, // relative to 1024 for system processes
|
||||||
|
|||||||
Reference in New Issue
Block a user