-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[BUG] "pip install docker-compose" fails on debian 12 #11168
Comments
I believe this issue is mentioned here: yaml/pyyaml#724 The issue doesn't occur with a lower version of PyYaml (5.3.1) that is still supported by docker-compose. So a workaround would be:
But please be aware of the vulnerability in PyYaml before version 5.4: https://www.cvedetails.com/cve/CVE-2020-14343/. (So follow at your own risk). |
There has been a workaround added for 6.0.1. A fix would be to support PyYaml 6.0.1, as it doesn't include the vulnerability. I have just seen this duplicate GitHub issue, it is unlikely this will get resolved because the Python docker-compose package is EOL. #11140 |
Yes, v1 is EOL; docker compose v2 is installed as part of the docker cli, and from your
You can run |
Thank you guys! Your information pointed me the right direction for my inital problem via ansible. The reference ansible-collections/community.docker#672 (comment) helped with a workaround until community.docker v3.5.0 gets released. (which should contain module docker_compose_v2 module). |
…-compose The issue doesn't occur with a lower version of PyYaml (5.3.1) that is still supported by docker-compose. So a workaround would be: pip install pyyaml==5.3.1 then: pip install docker-compose see: docker/compose#11168 (comment)
…-compose The issue doesn't occur with a lower version of PyYaml (5.3.1) that is still supported by docker-compose. So a workaround would be: pip install pyyaml==5.3.1 then: pip install docker-compose see: docker/compose#11168 (comment)
I bit the bullet and shifted to using shell commands for |
Compose v1 is EOL so no new release for the python version will be made. It's possible to run compose "standalone" by making an alias to the sudo ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose |
Description
docker-compose python lib can not be installed on debian 12.
latest version: docker-compose 1.29.2
Error
the full error trace can be found on the "steps to reproduce" part.
Steps To Reproduce
prepare debian 12 docker container
try install the "normal way"
reference for this: https://forum.ansible.com/t/breaking-changes-with-pip-and-system-packages/2177
try install in venv
2nd try: install without venv, forcing possible break of system packages
Compose Version
No response
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: