What is the difference between `docker compose` and `docker-compose`

Viewed 71

It seems that docker compose * mirrors many docker-compose * commands.

What is the difference between these two?

2 Answers

The goal is that docker compose will eventually replace docker-compose, but no timeline for that yet and until that day you still need docker-compose for production.

Why they do that? docker-compose is written in Python while most Docker developments are in Go. And they decided to recreate the project in Go with the same and more features, for better integration

Related