Docker 解决 sudo: docker-compose: command not found 问题

在 Docker 进行安装的时候遇到了下面的问题:

sudo: docker-compose: command not found

问题和解决

依次运行下面的命令:

sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)"  -o /usr/local/bin/docker-compose
sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose

就可以完成安装了。