码迷,mamicode.com
首页 > 其他好文 > 详细

docker-compose无法启动,报错: Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compoe.pkg

时间:2021-01-08 10:40:08      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:com   pkg   问题解决   http   lan   nload   无法   code   无法启动   

docker-compose无法启动,报错: Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compoe.pkg

问题解决

如题,装了docker-compose后无法启动,找了一些方法后最终用官网的安装方式成功解决

# 删除原来不能执行的/usr/local/bin/docker-compose
sudo rm /usr/local/bin/docker-compose

# 下载安装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

# 添加权限
sudo chmod +x /usr/local/bin/docker-compose

执行: docker-compse -v

docker-compose version 1.27.4, build 40524192

参考资料

https://docs.docker.com/compose/install/

docker-compose无法启动,报错: Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compoe.pkg

标签:com   pkg   问题解决   http   lan   nload   无法   code   无法启动   

原文地址:https://www.cnblogs.com/trblog/p/14240084.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!