-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
docker-py installation breaks docker-compose #1395
Comments
I have the very same problem, I rolled back to 1.10.5 to fix the issue |
apparently my proposed fix doesnt quite work as its breaking docker-py. instead of @aboutlo sulution, downgrating |
The newer version of HTH. |
thank you @shin- for the explanation. Currently, I'm installing docker via an ansible role. And as you can see there is an open issue there as well angstwad/docker.ubuntu#135 So if we could rid off |
I double check here: https://github.com/docker/compose/blob/master/requirements.txt So I'm not getting how to install the last versions of |
For those coming here because they are investigating this issue as a result of using ansible, you can no longer install docker-compose via pip and also use the ansible docker module together, which requires docker-py. Our workaround was to not use the ansible docker module (unfortunately), and instead use docker directly. |
Is there any reason you chose to do that over using the |
The specific case in which this failed was just due to pulling docker images onto the machine during our AMI generation. This use case is rather specific to how we're using Needless to say, we've had a few issues here and there with We are entertaining the idea of using the |
Thank you for taking the time to clarify! |
docker-py now breaks docker v2.2.0 docker/docker-py#1395 resulting in errors during `docker-compose up` : Dependency conflict: an older version of the 'docker-py' package is polluting the namespace. Run the following command to remedy the issue: pip uninstall docker docker-py; pip install docker Might also set `state: absent` to uninstall docker-py, but don't want to break existing installs with older versions of docker.
Old but fixed for this issue:
This seemed to work for me on Mac. |
im not quite sure if this is correct, but trying to install
docker-py
through pip after i've installeddocker-compose
breaksdocker-compose
withTo fix that error, i just need to do the installations in this order:
gist:
https://gist.github.com/serialdoom/3a443c420aa29f9422f8c5fc73f46602
python/pip versions tried:
The text was updated successfully, but these errors were encountered: