标签:target 软链接 com har http -- down 参考 hub
1、下载docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.6/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2、增加可执行权限
sudo chmod +x /usr/local/bin/docker-compose
3、添加软链接
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
4、确认版本
$ docker-compose --version docker-compose version 1.28.6, build 1110ad01
5、增加docker-compose命令补全
sudo yum install bash-completion -y sudo curl -L https://raw.githubusercontent.com/docker/compose/1.28.6/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
参考:https://docs.docker.com/compose/install/
https://docs.docker.com/compose/completion/
标签:target 软链接 com har http -- down 参考 hub
原文地址:https://www.cnblogs.com/a120608yby/p/14582853.html