Change handling

This commit is contained in:
Pascal Vizeli 2017-04-04 00:01:01 +02:00
parent 8f5c5b29b5
commit 49fe7f2da4

View File

@ -144,11 +144,10 @@ class DockerBase(object):
Need run inside executor.
"""
if self.container:
self._stop()
old_image = "{}:{}".format(self.image, self.version)
if self._install(tag):
self._stop()
try:
self.dock.images.remove(image=old_image, force=True)
return True