Docker-py: [Ansible] Error: docker-py version is 1.10.1. Minimum version required is 1.7.0.

Created on 10 Sep 2016  路  4Comments  路  Source: docker/docker-py

  154         if docker_version < MIN_DOCKER_VERSION:
  155             self.fail("Error: docker-py version is %s. Minimum version required is %s." % (docker_version,
  156                                                                                            MIN_DOCKER_VERSION))

In python:

Python 2.7.11 (default, Jan 22 2016, 08:29:18) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> "1.5" < "1.7"
True
>>> "1.9" < "1.7"
False
>>> "1.10.1" < "1.7"
True
>>> "1.10.1" < "1.7.0"
True
>>> "1.10" < "1.7.0"
True
release-management statuinvalid

Most helpful comment

For people who found this via google:

Temporary fix
Downgrade to 1.9.0:

 roles:
    - { role: angstwad.docker_ubuntu, pip_version_docker_py: 1.9.0 }

All 4 comments

(Not really your fault, also filing the same issue against ansible)

Yeah, that's on ansible, unfortunately. https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/docker_common.py#L154

The docker module has had a version_info for a while now (since 1.2), so there's no excuse for not using it.

I'm gonna close this since the issue is downstream, but feel free to ping me here if there's anything I can do to help.

For people who found this via google:

Temporary fix
Downgrade to 1.9.0:

 roles:
    - { role: angstwad.docker_ubuntu, pip_version_docker_py: 1.9.0 }
Was this page helpful?
0 / 5 - 0 ratings