From cbe0edc1ce537d6ed508957e0e6cd0350709474c Mon Sep 17 00:00:00 2001 From: hugo gogo Date: Mon, 29 Aug 2022 16:45:55 +0200 Subject: [PATCH] correction in docker compose installation instructions --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b6d95ff..fd17414 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ This README would normally document whatever steps are necessary to get your app - [github releases](https://github.com/docker/compose/releases) - [install last version of compose manually](https://docs.docker.com/compose/install/compose-plugin/#install-the-plugin-manually) - [install manually SO discussion](https://stackoverflow.com/questions/57456212/error-version-in-docker-compose-yml-is-unsupported) +- [correct release version name for download with a 'v'](https://stackoverflow.com/questions/58747879/docker-compose-usr-local-bin-docker-compose-line-1-not-command-not-found) - the version installed with apt is 1.17.1, way out of date **remove old versions** @@ -57,9 +58,9 @@ This README would normally document whatever steps are necessary to get your app **check if installation worked** - `sudo docker run hello-world` **installing docker compose** checked version on github release, see above -- `sudo curl -L "https://github.com/docker/compose/releases/download/2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose` +- notice the 'v' below, before the version name (docker doc has it wong) +- `sudo curl -L "https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose` - `sudo chmod +x /usr/local/bin/docker-compose` -- `sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose` **build and run a docker image** - be in directory with a Dockerfile - `sudo docker build --tag .`