mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
delete exited containers
This commit is contained in:
parent
f5f6ee3a61
commit
86c2e1280e
@ -67,7 +67,7 @@ do ->
|
||||
# Cleanup containers first, so that they don't block image removal.
|
||||
docker.listContainersAsync(all: true)
|
||||
.filter (containerInfo) ->
|
||||
!_.contains(apps, containerInfo.Image)
|
||||
!_.contains(apps, containerInfo.Image) or !containerInfo.Status
|
||||
.map (containerInfo) ->
|
||||
docker.getContainer(containerInfo.Id).removeAsync()
|
||||
.then ->
|
||||
|
Loading…
Reference in New Issue
Block a user