docker-py version comparison fail

50 views
Skip to first unread message

Andrew Ehrlich

unread,
Sep 26, 2016, 2:10:15 PM9/26/16
to Ansible Project
I installed docker-py on my Centos host like this:

$ sudo yum install python27-pip
and
$ sudo pip install docker-py

Then when I run an ansible playbook containing a "docker_container" task, it responds with:

FAILED! => {"changed": false, "failed": true, "msg": "Error: docker-py version is 1.10.3. Minimum version required is 1.7.0."}

Bug in version comparison where it thinks 1.10 < 1.7 ? Workaround/fixes?

ansible 2.1.1.0

Thanks,
Andrew

Mark Olliver

unread,
Sep 26, 2016, 2:13:39 PM9/26/16
to ansible...@googlegroups.com
Hi

Workaround is to downgrade docker-py to 1.9 due to the way sting versions are matched.

There is a fix I believe in the Dev branch for this though.

Mark

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b17735d8-2450-41dd-ab39-7df4e79a64b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages