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:
Pablo Carranza Velez 2018-03-13 08:17:25 -07:00
parent 7df07482d1
commit 9dfb76d2c8

View File

@ -56,6 +56,7 @@ var singleToMulticontainerApp = function (app) {
'io.resin.features.resin-api': '1',
'io.resin.update.strategy': updateStrategy,
'io.resin.update.handover-timeout': handoverTimeout,
'io.resin.legacy-container': '1'
},
environment: environment,
restart: restartPolicy,