mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-04 18:12:56 +00:00
When migrating from legacy supervisors, mark the temporary composition as legacy
We migrate to a default composition because we need to avoid deleting existing docker images, but we need to use the legacy-container label to avoid potentially creating a duplicated container when a target state comes in. (Just like we do for preloaded apps) Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
7df07482d1
commit
9dfb76d2c8
@ -56,6 +56,7 @@ var singleToMulticontainerApp = function (app) {
|
|||||||
'io.resin.features.resin-api': '1',
|
'io.resin.features.resin-api': '1',
|
||||||
'io.resin.update.strategy': updateStrategy,
|
'io.resin.update.strategy': updateStrategy,
|
||||||
'io.resin.update.handover-timeout': handoverTimeout,
|
'io.resin.update.handover-timeout': handoverTimeout,
|
||||||
|
'io.resin.legacy-container': '1'
|
||||||
},
|
},
|
||||||
environment: environment,
|
environment: environment,
|
||||||
restart: restartPolicy,
|
restart: restartPolicy,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user