mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
fix pull bug
This commit is contained in:
parent
73adbd9645
commit
dc02c14a36
@ -40,12 +40,12 @@ class DockerBase(object):
|
||||
"""
|
||||
try:
|
||||
_LOGGER.info("Pull image %s tag %s.", self.image, tag)
|
||||
image = self.dock.images.pull(self.image, tag=tag)
|
||||
image = self.dock.images.pull("{}:{}".format(self.image, tag))
|
||||
|
||||
if tag != 'latest':
|
||||
image.tag(self.image, tag='latest')
|
||||
except docker.errors.APIError as err:
|
||||
_LOGGER.error("Can't pull %s:%s -> %s.", self.image, tag, err)
|
||||
_LOGGER.error("Can't install %s:%s -> %s.", self.image, tag, err)
|
||||
return False
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user