From e7d8245c3b97469e290b13a7fef4b08bb3416949 Mon Sep 17 00:00:00 2001 From: Roger Rutishauser Date: Thu, 2 Jan 2025 17:39:02 +0100 Subject: [PATCH] update readme --- docker/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docker/README.md b/docker/README.md index bf81a58..6a119d5 100644 --- a/docker/README.md +++ b/docker/README.md @@ -325,7 +325,29 @@ docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' cont `docker-compose.yml` is the file which includes all nescessary information. It can include multiple services like web (built from a Dockerfile) and db (pulled from Docker Hub). +## docker-compose vs docker compose + - If you're using a modern Docker installation (20.10+), use `docker compose`. + - If you're working on a system with an older Docker version or have compatibility concerns, use `docker-compose`. + +| Feature | docker compose | docker-compose | +| --- | --- | --- | +| Integration | Integrated into Docker CLI | Standalone binary | +| Compose Specification | Supports Compose V2 | Supports older Compose V1 | +| Performance | Faster and more efficient | Slower compared to Compose V2 | +| Availability | Docker 20.10+ and Docker Desktop | Any Docker version, standalone | +| Future-proof | Actively developed and maintained | Legacy, less maintained | + +check your docker compose version (examples): + +``` +docker compose version + Docker Compose version v2.32.1 + # is installed together with docker v27.4.1 +docker-compose --version + docker-compose version 1.25.0, build unknown + # separate installation for old version. +``` ## Image Location