首页 前端知识 安装docker-compose出现错误html: No such file or directory syntax error near unexpected token `<‘ <head><t

安装docker-compose出现错误html: No such file or directory syntax error near unexpected token `<‘ <head><t

2024-03-07 08:03:07 前端知识 前端哥 484 32 我要收藏

安装docker-compose出现
/usr/local/bin/docker-compose: line 1: html: No such file or directory
/usr/local/bin/docker-compose: line 2: syntax error near unexpected token <' 'usr/local/bin/docker-compose: line 2: 502 Bad Gateway
错误

/usr/local/bin/docker-compose: line 1: html: No such file or directory
/usr/local/bin/docker-compose: line 2: syntax error near unexpected token `<'
'usr/local/bin/docker-compose: line 2: `<head><title>502 Bad Gateway</title></head>

解决
重新安装docker-compose,国内的有些快捷方式有些是有问题的,可能短期内能够使用,时间长了就会出现问题
尽量直接使用GitHub的,如果一次下载不成,多执行几遍就可以

curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 

没有权限记得加sudo

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

没有权限记得加sudo

docker-compose -v
转载请注明出处或者链接地址:https://www.qianduange.cn//article/3376.html
评论
会员中心 联系我 留言建议 回顶部
复制成功!