安装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:
错误
/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文章来源:https://www.toymoban.com/news/detail-518214.html
chmod +x /usr/local/bin/docker-compose
没有权限记得加sudo文章来源地址https://www.toymoban.com/news/detail-518214.html
docker-compose -v
到了这里,关于安装docker-compose出现错误html: No such file or directory syntax error near unexpected token `<‘ <head><t的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!