Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compoe.pkg解决办法

在linux环境,安装docker-compose时使用的命令为;

curl -L https://github.com/docker/compose/releases/download/1.25.0-rc4/docker-compose-`uname -s`-`ur/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose

docker-compose --version

安装完成之后提示:

Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/doc

我试着把文件设置为777权限也一样不能解决问题。

然后去github手动下载文件:https://github.com/docker/compose/releases/tag/1.25.0-rc4

Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compoe.pkg解决办法_第1张图片

将文件上传到/usr/local/bin/ 目录下,重命名为docker-compose,修改文件权限:

chmod +x /usr/local/bin/docker-compose

执行docker-compose -v:

 

你可能感兴趣的:(docker,docker-compose)