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

Unable to install docker-compose #3

Open
magnida opened this issue Oct 2, 2017 · 4 comments
Open

Unable to install docker-compose #3

magnida opened this issue Oct 2, 2017 · 4 comments

Comments

@magnida
Copy link

magnida commented Oct 2, 2017

Hi I am getting the following issue on a target node that I am trying to install docker-compose on. After it is installed with this role, a docker-compose --version will output this:

foo@js-1094-d:~$ docker-compose --version
WARNING: Dependency conflict: an older version of the 'docker-py' package may be polluting the namespace. If you're experiencing crashes, run the following command to remedy the issue:
pip uninstall docker-py; pip uninstall docker; pip install docker

Traceback (most recent call last):
File "/usr/local/bin/docker-compose", line 7, in
from compose.cli.main import main
File "/usr/local/lib/python2.7/dist-packages/compose/cli/main.py", line 20, in
from ..bundle import get_image_digests
File "/usr/local/lib/python2.7/dist-packages/compose/bundle.py", line 13, in
from .network import get_network_defs_for_service
File "/usr/local/lib/python2.7/dist-packages/compose/network.py", line 7, in
from docker.types import IPAMConfig
ImportError: cannot import name IPAMConfig

Running with 1.2.2 (latest at the time) for the compose role and Ansible 2.3.1 with this snippet from the playbook:

vars:
docker_compose_version: 1.14.0
roles:
- franklinkim.docker
- franklinkim.docker-compose

Any ideas?

Thanks

@franklinkim
Copy link
Member

Hi, what platform are you running on (i.e. Ubuntu Xenial)?

@franklinkim
Copy link
Member

Just ran the vagrant box test and I see the same error.
Unfortunately my docker role is not up to date with the new docker CE version installation.
Any PRs would be appreciated!

@magnida
Copy link
Author

magnida commented Oct 18, 2017

@franklinkim I also noticed that the v1.9.0 version isn't on Ansible Galaxy(latest is 1.7.0). Would it be possible to add it, so that I can test on CentOS?

@franklinkim
Copy link
Member

@magnida sure, somehow the travis webhook doesn't seem to reach ansible.. manually updated the role

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants