Change restart policy to unless-stopped

This commit is contained in:
Girish Ramakrishnan
2019-11-13 10:29:29 -08:00
parent 62174658cf
commit e39b081567
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
View File
@@ -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