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:
Konstantin Suvorov 2016-02-09 15:34:30 +03:00
parent 00345d4975
commit d9f13a0bbc

View file

@ -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)