correction in docker compose installation instructions
This commit is contained in:
@@ -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 <name> .`
|
||||
|
||||
Reference in New Issue
Block a user