mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-18 17:00:25 +00:00
Properly stop and remove containers.
This commit is contained in:
parent
238768e7d4
commit
5482b9208d
@ -154,7 +154,7 @@ exports.update = ->
|
||||
knex('app').update(app).where(imageId: app.imageId)
|
||||
# And delete all the ones to remove in one go
|
||||
promises.push(
|
||||
Promise.all(toBeRemoved.map(kill))
|
||||
Promise.map(toBeRemoved, (imageId) -> kill(remoteApps[imageId]))
|
||||
.then ->
|
||||
knex('app').whereIn('imageId', toBeRemoved).delete()
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user