当前位置:   article > 正文

docker-compose 安装失败 Cannot open self usrlocalbindocker-compose

cannot open self

docker compose 运行报错 [1458] Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg

按照官方的 curl 安装方法安装之后,查看版本报错

curl 安装方法:

sudo curl -L “https://github.com/docker/compose/releases/download/1.25.0/docker-compose- ( u n a m e − s ) − (uname -s)- (unames)(uname -m)” -o /usr/local/bin/docker-compose

运行

docker-compose --version

报错:

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

查找原因发现可能是由于网络原因下载的不完整?

换一种下载方式

wget https://github.com/docker/compose/releases/download/1.25.0/docker-compose- ( u n a m e − s ) − (uname -s)- (unames)(uname -m) -O /usr/local/bin/docker-compose

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/1013591
推荐阅读
相关标签
  

闽ICP备14008679号