$ docker-compose -v
docker-compose version 1.17.1, build unknown
services
key, or omit the version
key and place your service definitions at the root of the file to use version 1.docker-compose를 최신 버전으로 설치
$ sudo apt-get remove docker-compose -y
$ sudo apt install jq
// check latest version
$ VERSION=$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)
$ DESTINATION=/usr/bin/docker-compose
// download latest version
$ sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION
// chmod set
$ sudo chmod 755 $DESTINATION
// versionn check
$ docker-compose -v
Docker Compose version v2.7.0
$ sudo curl -L https://github.com/docker/compose/releases/download/$(curl --silent https://api.github.com/repos/docker/compose/releases/latest | jq .name -r)/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
$ sudo chmod 755 /usr/bin/docker-compose