download
Download docker directly from GitHub to the local /usr/local/bin/ directory, grant read and write permissions, check, and you can use it;
# 下载到/usr/local/bin/docker-compose目录下
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# 赋予读写权限
chmod +x /usr/local/bin/docker-compose
# 检查有无下载成功
docker-compose --version
If you can't download, refer to this picture to download
Download link https://github.com/docker/compose/releases/