This repository was archived by the owner on Mar 23, 2019. It is now read-only.
This repository was archived by the owner on Mar 23, 2019. It is now read-only.
Docker ImageCollection.build() api has changed. It now returns a tuple #936
Open
Description
ansible-container/container/docker/engine.py
Line 1151 in 2fa778a
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