4 ms·
Both should do exacly the same, they are just installed differently. docker compose is installed as docker CLI plugin (Linux only), and docker-compose is instal
by whilenot-dev 2y ago
Both should do exacly the same, they are just installed differently. docker compose is installed as docker CLI plugin (Linux only), and docker-compose is installed as standalone binary.
See ref: https://docs.docker.com/compose/install/#scenario-two-install-the-compose-plugin https://docs.docker.com/compose/install/#scenario-two-instal...
- tristan957 2y agoThere are subtle differences between the two and not exactly the same.
- whilenot-dev 2y agoThat would be news to me, as both are pointing to the exact same GitHub repository[0]. Can you name the differences? [0]: https://github.com/docker/compose https://github.com/docker/compose
- thangngoc89 2y agoPrevious docker-compose was a separate program, written in Python if I remember correctly, people usually preferred to them as v1. Later docker incorporated it into the docker binary itself as a subcommand so that’s v2
- whilenot-dev 2y agov2 is still a separate binary, it can just be installed in different ways (on Linux). If GGGP was referring to v1, then that's legacy software since 2+ years and they probably shouldn't use it.
- yjftsjthsd-h 2y agoThe one problem I previously hit was that the ansible integration used the Python version; I hope they've fixed it now but haven't looked lately.
- whilenot-dev 2y agoLooks like v2 is available: https://galaxy.ansible.com/ui/repo/published/community/docker/content/module/docker_compose_v2/ https://galaxy.ansible.com/ui/repo/published/community/docke...
- yjftsjthsd-h 2y agoOn the I've hand: that's great news! On the other: > The Docker compose CLI plugin has no stable output format (see for example https://github.com/docker/compose/issues/10872 https://github.com/docker/compose/issues/10872 ), and for the main operations also no machine friendly output format. The module tries to accomodate this with various version-dependent behavior adjustments and with testing older and newer versions of the Docker compose CLI plugin. Currently the module is tested with multiple plugin versions between 2.18.1 and 2.23.3. The exact list of plugin versions will change over time. New releases of the Docker compose CLI plugin can break this module at any time.