The easiest way to make Docker Compose available on Container-Optimized OS on Google Compute Engine (GCE) on Google Cloud Platform (GCP).
This is minimal Bash script version of Community Tutorial.
Simply, download installer.sh, run it, and then reload bash by source ~/.bashrc or re-login.
By default, 1.27.4 will be retrieved, but you can specify any version as an argument.
- Install default version
curl -O https://gist.githubusercontent.com/kurokobo/25e41503eb060fee8d8bec1dd859eff3/raw/0d7cd29472f0eaa26ce424071456ad84b24fb318/installer.sh
bash ./installer.sh
source ~/.bashrc
docker-compose version- Install specific version
curl -O https://gist.githubusercontent.com/kurokobo/25e41503eb060fee8d8bec1dd859eff3/raw/0d7cd29472f0eaa26ce424071456ad84b24fb318/installer.sh
bash ./installer.sh 1.27.3
source ~/.bashrc
docker-compose versionOr you can invoke directly.
- Install default version
curl -s https://gist.githubusercontent.com/kurokobo/25e41503eb060fee8d8bec1dd859eff3/raw/0d7cd29472f0eaa26ce424071456ad84b24fb318/installer.sh | bash
source ~/.bashrc
docker-compose version- Install specific version
curl -s https://gist.githubusercontent.com/kurokobo/25e41503eb060fee8d8bec1dd859eff3/raw/0d7cd29472f0eaa26ce424071456ad84b24fb318/installer.sh | bash /dev/stdin 1.27.3
source ~/.bashrc
docker-compose version