-
Notifications
You must be signed in to change notification settings - Fork 23.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker_image module TypeError: build() got an unexpected keyword argument 'stream' #35612
Comments
Files identified in the description: If these files are inaccurate, please update the |
FYI a build locking in |
Ansible is relying on (presumably) an older API, including among other things the stream parameter. See https://docker-py.readthedocs.io/en/stable/change-log.html ( specifically, https://docker-py.readthedocs.io/en/stable/change-log.html#breaking-changes ). |
This is a major breaking problem that will affect all Ansible releases that use the A quick fix to this would be an edit to documentation of Docker related module pages, specifying requirements of: where X may vary depending upon the specific version of Ansible and its respective documentation of a minimum version, but in all cases this major maximum version must be specified. Obviously the longer term forward looking solution, especially for 2.5, is to update the calls so they work with 3.0, and I don't know how difficult that will be for it and other supported branches. In any case, I propose based on the scope and severity that Docker module documentation be updated for supported Ansible versions, at a high priority. |
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
To work around ansible docker-image bug, as explained below: ansible/ansible#35612
See ansible/ansible#35612 for details
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Quick Fix on ArchLinuxI had the same issue on ArchLinux. I've made a downgrade of
As @skylerbunny mentioned, Docker SDK 3.0 update has broken that
|
Thanks for #35612 (comment) @geerlingguy! I added the following to my + # Limit version as workaround for: https://github.com/ansible/ansible/issues/35612
+ - pip install 'docker<3.0' |
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Ansible is incompatible with version 3.0.0 of the Python Docker library (see ansible/ansible#35612).
Hello, Is it correct that this Issue has been closed? No support for latest version of docker module? |
ISSUE TYPE
COMPONENT NAME
docker_image
moduleANSIBLE VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Ubuntu 16.04 Xenial
SUMMARY
In what is perhaps the simplest Docker image creation playbook I've ever made (the docker example playbook from A4D), automated builds started failing last night.
I confirmed the issue locally, when run under a Docker container running Ubuntu 16.04 Xenial.
Example failed build: https://travis-ci.org/geerlingguy/ansible-for-devops/jobs/335923274
It has pip-installed
docker
for Python, version 3.0.0:It looks like the problem is the 3.0.0 release—short term fix is to lock into a 2.x release, using
pip install docker==2.7.0
. The 3.0.0 release notes mention, under removed:STEPS TO REPRODUCE
pip install docker
, 3.0.0 or later.ansible-playbook -i '127.0.0.1,' main.yml
EXPECTED RESULTS
Docker image would be built from the provided Dockerfile, then run.
ACTUAL RESULTS
The
docker_image
task fails withTypeError: build() got an unexpected keyword argument 'stream'
.The text was updated successfully, but these errors were encountered: