Docker module: restarted should update the container when necessary

This commit is contained in:
Yann Hamon 2015-08-26 00:01:35 +02:00
parent 116793889f
commit 8f03f1e4e1

View file

@ -1586,6 +1586,10 @@ def restarted(manager, containers, count, name):
containers.refresh()
for container in manager.get_differing_containers():
manager.stop_containers([container])
manager.remove_containers([container])
manager.restart_containers(containers.running)
started(manager, containers, count, name)