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
pull/18777/head
Konstantin Suvorov 9 years ago committed by Matt Clay
parent 6b4fbe62de
commit 762bd3a801

@ -1782,6 +1782,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…
Cancel
Save