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

View File

@@ -299,7 +299,7 @@ function createSubcontainer(app, name, cmd, options, callback) {
PublishAllPorts: false,
ReadonlyRootfs: app.debugMode ? !!app.debugMode.readonlyRootfs : true,
RestartPolicy: {
'Name': isAppContainer ? 'always' : 'no',
'Name': isAppContainer ? 'unless-stopped' : 'no',
'MaximumRetryCount': 0
},
CpuShares: 512, // relative to 1024 for system processes