Merge pull request #3928 from chouseknecht/fix_16211
Fix #3927 - only stop/kill running containers
This commit is contained in:
commit
1eb63c7567
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue