Fix docker container restart
restart_containers(containers.running) may try to restart containers that are deleted when looping through get_differing_containers() fix this by refreshing list after first loop
This commit is contained in:
parent
00345d4975
commit
d9f13a0bbc
1 changed files with 2 additions and 0 deletions
|
@ -1729,6 +1729,8 @@ def restarted(manager, containers, count, name):
|
|||
manager.stop_containers([container])
|
||||
manager.remove_containers([container])
|
||||
|
||||
containers.refresh()
|
||||
|
||||
manager.restart_containers(containers.running)
|
||||
started(manager, containers, count, name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue