What is the difference between docker-compose v2 (Compose CLI) and v1 (docker-compose) and what improvements were introduced?

Docker Fundamentals Hard

Docker Fundamentals — Hard

What is the difference between docker-compose v2 (Compose CLI) and v1 (docker-compose) and what improvements were introduced?

Key points

  • Compose v2 is rewritten in Go for better performance
  • BuildKit integration is default in v2
  • Profiles allow selective service startup
  • V1 is deprecated in favor of v2
  • Improved merge and include directives in v2

Ready to go further?

Related questions