Closed dhozac closed 5 years ago
I'd just do docker<3
, because there's more API issues to fix. Like:
$ ansible-container build
Building Docker Engine context...
Starting Docker build of Ansible Container Conductor image (please be patient)...
ERROR Unknown exception
Traceback (most recent call last):
File "/home/wk/.pyenv/versions/3.6.4/lib/python3.6/site-packages/container/cli.py", line 299, in __call__
getattr(core, u'hostcmd_{}'.format(args.subcommand))(**vars(args))
File "/home/wk/.pyenv/versions/3.6.4/lib/python3.6/site-packages/container/__init__.py", line 28, in __wrapped__
return fn(*args, **kwargs)
File "/home/wk/.pyenv/versions/3.6.4/lib/python3.6/site-packages/container/core.py", line 181, in hostcmd_build
environment=env_vars
File "/home/wk/.pyenv/versions/3.6.4/lib/python3.6/site-packages/container/docker/engine.py", line 105, in __wrapped__
return fn(self, *args, **kwargs)
File "/home/wk/.pyenv/versions/3.6.4/lib/python3.6/site-packages/container/__init__.py", line 28, in __wrapped__
return fn(*args, **kwargs)
File "/home/wk/.pyenv/versions/3.6.4/lib/python3.6/site-packages/container/docker/engine.py", line 1070, in build_conductor_image
return image.id
AttributeError: 'tuple' object has no attribute 'id'
Thank you for the input. Was re-introduced as a part of https://github.com/ansible/ansible-container/pull/977
Use the new stream importer to feed it right back.
ISSUE TYPE
SUMMARY
docker>=3.1.4 is getting pulled in by the unbounded dependency on docker-compose. Docker 3.0.0 and up return a generator from container.export(), resulting in a traceback