-
Notifications
You must be signed in to change notification settings - Fork 122
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
community.docker.docker_compose failed with Docker SDK for Python 7.0.0 (Released: Dec 8, 2023) #714
Comments
Encountered this same issue. Had to check my versions, as I use geerlingguy's roles for both the docker and pip installs
|
Ah, the always very popular major releases with breaking chnages on Friday evenings :D There will be some more modules/plugins in this collection that have trouble with this, I'll take a look at it later today. Fortunately the breaking changes are very limited (see https://github.com/docker/docker-py/releases/tag/7.0.0), otherwise you might have quite a few more breakages, especially with docker-compose itself, which is EOL for quite some time now and won't get adjusted to such changes anymore. |
I'm afraid this wlil be a So basically docker-compose is incompatible with Docker SDK for Python >= 7. Since there will be no further release of docker-compose v1 (according to Docker Inc.), there's no way to fix this (except by forking docker-compose and releasing it under a new name, with all the problems that brings...). The only thing we can do is update the documentation of the module to point this incompatibility out. |
I am in contact with the maintainers of the docker-py project in this issue docker/docker-py#3194. |
Now that there's a docker_compose_v2 module, I would suggest stop using Docker Compose v1 and switch to Docker Compose v2. That one has a lot less problems, also since the module doesn't have any Python requirements (except Python 2.7 or Python 3.6+ itself :) ). |
Where can I find this? 😊 |
It's part of community.docker 3.6.0 and 3.7.0. If you're using the |
ansible 9.2.0 was released which contains the |
SUMMARY
community.docker.docker_compose fails to run my containers with Docker SDK for Python 7.0.0 (Released: Dec 8, 2023).
The error is related to a function call to "kwargs from_env()" which is passed an argument called "ssl_version" which the function no longer recognizes or supports.
Everything works with the penultimate stable version (Docker SDK for Python: 6.1.3).
ISSUE TYPE
COMPONENT NAME
community.docker.docker_compose
ANSIBLE VERSION
COLLECTION VERSION
none
CONFIGURATION
OS / ENVIRONMENT
Linux 5.15.0-83-generic #92-Ubuntu SMP Mon Aug 14 09:30:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
STEPS TO REPRODUCE
Run this yaml in an Ubuntu 22.04 vagrant VM to install the packages and build up /app/docker/docker_compose.yml
EXPECTED RESULTS
My containers defined in /app/docker/docker_compose.yml are up.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: