Search code examples
dockerdocker-compose

Difference between "docker compose" and "docker-compose"



Note: this question was created BEFORE docker docs were updated (it was the reason they were updated - see this answer). Please do not post answers pointing out the docs on the differences :-)


I have been using docker-compose, but noticed there is also a docker compose (without the dash).
I have not been able to quickly determine the differences between the two forms by googling.

Anyone?

docker compose's help:

enter image description here

docker-compose's help:

enter image description here


Solution

  • Brandon Mitchell from docker's Captain Program replied to the github issue I opened on this as follows:

    The docker/compose-cli project is in an in-between state, where it's not available in upstream releases of the docker-cli Linux packages, but is being included in Docker Desktop. The documentation pages normally follow what's in the docker/cli, so having this released to Desktop early puts the documentation in a difficult position. I'm going to raise this issue with the Docker team to see how they'd like to handle it.

    Update: from docker github issue:

    gtardif commented 2 days ago

    compose command reference doc is now live

    new docker compose command reference