apt install docker-compose
/usr/bin/docker-compose --version
docker-compose version 1.25.0, build unknown
ln -s /usr/bin/docker-compose /usr/local/bin/docker-compose
docker-compose -v
docker-compose version 1.25.0, build unknown
docker-compose up -d
ERROR: client version 1.22 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
vi docker-compose.yaml
version: '2'
改为
version: '2.1'
services: