下载
直接从GitHub下载docker到本地的/usr/local/bin/目录下,赋予读写权限,检查,就可以使用了;
# 下载到/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
如不能下载参考此图下载
下载链接 https://github.com/docker/compose/releases/