|
image = self.client.images.build(fileobj=tarball_file, |
As per the commit docker/docker-py@631cc3c (4 months ago) the return value of build() now returns a tuple with the first item being the image. Hence
image = self.client.images.build(fileobj=tarball_file,
custom_context=True,
tag=tag,
rm=True,
nocache=not cache)
Instead needs to be
image,_ = self.client.images.build(fileobj=tarball_file,
custom_context=True,
tag=tag,
rm=True,
nocache=not cache)
?
Also do the dependencies need to be updated to ensure the correct version of docker-py gets installed with ansible container