docker-py version comparison fail

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

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