Hacker News new | ask | show | jobs
by bityard 583 days ago
> It's also usable via docker-compose

Is that "docker-compose" (with a dash) or "docker compose" (with a space)?

2 comments

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-instal...

There are subtle differences between the two and not exactly the same.
That 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

Previous 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
v2 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.
The 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.
AFAIK docker-compose is a an older utility, and `docker compose` is the new-way to do things.