mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-22 16:46:29 +00:00
Change handling
This commit is contained in:
parent
8f5c5b29b5
commit
49fe7f2da4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user