docker-compose up报错Cannot open self /usr/local/bin/docker-compose

docker-compose up报错Cannot open self /usr/local/bin/docker-compose

Docker运行docker-compose up 命令报错 Cannot open self /usr/local/bin/docker-compose or archive /usr/local/bin/docker-compose.pkg

docker-compose up报错Cannot open self /usr/local/bin/docker-compose

出现这样的错误,多半是因为文件不完整或是下载残缺文件,解决办法就是自己去 https://github.com/docker/compose/releases/

按照你的系统下载你需要的版本,然后修改包名为 docker-compose ,上传到/usr/local/bin 目录,执行

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

解决办法:

删除依赖 删除文件
docker-compose up报错Cannot open self /usr/local/bin/docker-compose_第1张图片
重新下载安装
docker-compose up报错Cannot open self /usr/local/bin/docker-compose_第2张图片

你可能感兴趣的:(docker,docker,容器,运维)