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

ERROR community.docker.docker_compose has been removed #26

Open
reza3723 opened this issue Feb 3, 2025 · 1 comment
Open

ERROR community.docker.docker_compose has been removed #26

reza3723 opened this issue Feb 3, 2025 · 1 comment

Comments

@reza3723
Copy link

reza3723 commented Feb 3, 2025

Hello,

I have followed all the steps provided in the documentation. However, at the end of the process, I encountered the following error:

root@nonchalantend:/openvpn-aws# root@nonchalantend:/openvpn-aws# sudo ansible-playbook main.yml
ERROR! [DEPRECATED]: community.docker.docker_compose has been removed. This module uses docker-compose v1, which is End of Life since July 2022. Please migrate to community.docker.docker_compose_v2. This feature was removed from community.docker in version 4.0.0. Please update your playbooks.

Could you please provide guidance on how to resolve this issue?

Thank you in advance for your assistance.

Best regards,

@7Calvin
Copy link

7Calvin commented Mar 11, 2025

use this to change the compose to v2
find . -type f -exec sed -i 's/community.docker.docker_compose:/community.docker.docker_compose_v2:/g' {} +
and then change the boolean conf
find . -type f -name "*.yml" -exec sed -i 's/build: false/build: never/g' {} +

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

No branches or pull requests

2 participants