Mood icon indicating copy to clipboard operation
Mood copied to clipboard

docker-compose up -d 执行报错 求教是版本问题吗

Open denkloge opened this issue 4 years ago • 8 comments

Traceback (most recent call last): File "bin/docker-compose", line 3, in File "compose/cli/main.py", line 67, in main File "compose/cli/main.py", line 123, in perform_command File "compose/cli/command.py", line 69, in project_from_options File "compose/cli/command.py", line 132, in get_project File "compose/cli/docker_client.py", line 43, in get_client File "compose/cli/docker_client.py", line 170, in docker_client File "docker/api/client.py", line 188, in init File "docker/api/client.py", line 213, in _retrieve_server_version docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory')) [30618] Failed to execute script docker-compose

版本如下 image

denkloge avatar Nov 10 '20 02:11 denkloge

image

denkloge avatar Nov 10 '20 02:11 denkloge

我的版本是1.17.1,不过应该跟版本没关系,建议重置服务器后再试试

wsydxiangwang avatar Nov 10 '20 04:11 wsydxiangwang

如何在服务器中跑起来 我的是centos,总是卡在node-sass,导致后续无法编译

jstJ avatar Dec 30 '20 08:12 jstJ

node-sass 是网络问题,npm的锅,找个好网络多试几次、、、现在还在优化,后续应该能解决

------------------ 原始邮件 ------------------ 发件人: "jstJ"<[email protected]>; 发送时间: 2020年12月30日(星期三) 下午4:44 收件人: "wsydxiangwang/Mood"<[email protected]>; 抄送: "不如吃茶去v"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [wsydxiangwang/Mood] docker-compose up -d 执行报错 求教是版本问题吗 (#11)

如何在服务器中跑起来 我的是centos,总是卡在node-sass,导致后续无法编译

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

wsydxiangwang avatar Dec 30 '20 09:12 wsydxiangwang

你能直接运行起来实在docker中装了什么环境吗?上传本地的node_moudlues后,server能跑起来,web也跑起来了,但是web报错504,说liuxs环境不支持node-sass

jstJ avatar Dec 30 '20 09:12 jstJ

我的是 Ubuntu 18.04 ,安装docker的时候是否有提示“node-sass”这个东西出错?? 如有的话,就是网络的问题,暂定未解决..... 后面再找优化方法吧。。

------------------ 原始邮件 ------------------ 发件人: "jstJ"<[email protected]>; 发送时间: 2020年12月30日(星期三) 下午5:07 收件人: "wsydxiangwang/Mood"<[email protected]>; 抄送: "不如吃茶去v"<[email protected]>; "Comment"<[email protected]>; 主题: Re: [wsydxiangwang/Mood] docker-compose up -d 执行报错 求教是版本问题吗 (#11)

你能直接运行起来实在docker中装了什么环境吗?上传本地的node_moudlues后,server能跑起来,web也跑起来了,但是web报错504,说liuxs环境不支持node-sass

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

wsydxiangwang avatar Dec 30 '20 09:12 wsydxiangwang

node-sass 更改为 dart sass,以解决以上 node-sass 报错的问题!

wsydxiangwang avatar Jan 09 '21 05:01 wsydxiangwang

更改docker文件 下载node-sass 时在后边添加一句 使用淘宝镜像源地址下载

zhaozhen1993 avatar Feb 01 '21 07:02 zhaozhen1993