Fix #16211 - only stop/kill running containers

This commit is contained in:
chouseknecht 2016-06-10 22:34:38 -04:00
parent 964d9b3a6d
commit b9b727f435

View file

@ -1616,6 +1616,7 @@ class ContainerManager(DockerBaseClass):
self.diff['image_different'] = True
self.log("differences")
self.log(differences, pretty_print=True)
if container.running:
self.container_stop(container.Id)
self.container_remove(container.Id)
new_container = self.container_create(self.parameters.image, self.parameters.create_parameters)