Skip to content
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

[2.7] docker_container: fix support for docker-py 1.7.0 #55496

Merged
merged 2 commits into from
Apr 24, 2019

Conversation

felixfontein
Copy link
Contributor

SUMMARY

docker_container, docker_image and docker_image_facts in stable-2.7 are supposed to support docker-py 1.7.0. Unfortunately, docker_container will always crash when creating a container, and docker_image will crash when pulling or pushing. This is no longer relevant for 2.8, since the minimal docker-py requirement has been bumped to 1.8.0 in general, and 1.10.0 for docker_image.

The pushing/pulling is a bit harder to fix, but the crash for docker_container can be easily fixed. This PR fixes the crash for docker_container and updates the tests so that they will also run for docker-py 1.7.0.

This is not a backport!

ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME

docker_container
docker_image
docker_image_facts

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. docker module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels Apr 18, 2019
@felixfontein
Copy link
Contributor Author

Should fix the problem mentioned here: #42162 (comment)

@DBendit @WojciechowskiPiotr @akshay196 @danihodovic @dariko @jwitko @kassiansun @tbouvet please take a look at this one, this is not a backport and thus should be regularly reviewed!

@abadger
Copy link
Contributor

abadger commented Apr 24, 2019

Merged for the 2.7.11 release

@felixfontein felixfontein deleted the docker-2.7-support-1.7.0 branch April 24, 2019 03:13
@bcoca bcoca removed needs_triage Needs a first human triage before being processed. labels Apr 24, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 backport This PR does not target the devel branch. bug This issue/PR relates to a bug. cloud community_review In order to be merged, this PR must follow the community review workflow. docker module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants