Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] docker compose up --build -d #84

Closed
tuoerning opened this issue Jul 19, 2024 · 11 comments
Closed

[feat] docker compose up --build -d #84

tuoerning opened this issue Jul 19, 2024 · 11 comments

Comments

@tuoerning
Copy link

截图 2024-07-19 19-35-06
I encountered this problem when using docker, is there any solution

@YuqiHuai
Copy link
Owner

Looks like it is not pulling the docker container from the docker hub properly. Not sure if this is related to if you are running this in China.

@CarrotZelda
Copy link

我也遇到了这个问题,只需要更改一下docker的镜像就好了。
运行sudo vi /etc/docker/daemon.json,然后在daemon.json中添加以下内容后保存。
`{

"registry-mirrors": [

"https://docker.m.daocloud.io",

"https://docker.nju.edu.cn",

"https://dockerproxy.com"

]

}`

最后重启docker:sudo systemctl restart docker
此时就可以执行docker compose up --build -d了。 @tuoerning

@YuqiHuai
Copy link
Owner

@CarrotZelda Thank you for your input!

@AHPUymhd
Copy link

我也遇到了这个问题,只需要更改一下docker的镜像就好了。 运行sudo vi /etc/docker/daemon.json,然后在daemon.json中添加以下内容后保存。 `{

"registry-mirrors": [

"https://docker.m.daocloud.io",

"https://docker.nju.edu.cn",

"https://dockerproxy.com"

]

}`

最后重启docker:sudo systemctl restart docker。 此时就可以执行docker compose up --build -d了。 @tuoerning

请问需要开梯子吗

@CarrotZelda
Copy link

不需要

@Yuppie6
Copy link

Yuppie6 commented Dec 3, 2024

@CarrotZelda 您好。按照您的方法进行修改过后还是出现了同样的问题。我在别处看到的解决方法是加入阿里云的镜像,我想知道多个镜像是否会产生冲突。

@CarrotZelda
Copy link

我猜是那几个镜像链接失效了,我之前添加了好几个镜像没有冲突。你也可以试试把那几个去掉,加阿里云的镜像。

@Yuppie6
Copy link

Yuppie6 commented Dec 3, 2024 via email

@CarrotZelda
Copy link

我也不清楚根本原因是什么,但是换镜像链接确实能够build成功,我昨晚在新环境上配了一下,添加了一些新的链接。build的过程很慢,但最终没有报错,build成功了。下面是我的daemon.json内的镜像内容。

"registry-mirrors": [
"https://docker.1panel.dev",
"https://docker.fxxk.dedyn.io",
"https://docker.xn--6oq72ry9d5zx.cn",
"https://docker.m.daocloud.io",
"https://a.ussh.net",
"https://docker.zhai.cm",
"https://docker.nju.edu.cn",
"https://dockerproxy.com",
"http://docker.1panel.live",
"https://dockerpull.com",
"https://docker.1panel.live",
"https://dockerproxy.cn",
"https://docker.hpcloud.cloud"],

@Yuppie6
Copy link

Yuppie6 commented Dec 3, 2024 via email

@CarrotZelda
Copy link

CarrotZelda commented Dec 3, 2024

还有一件事,我参考了issue89,#89 (comment)

把client文件夹与server文件夹中的Dockerfile做了些修改,在RUN npm install上面加了一行
RUN npm config set registry https://registry.npmmirror.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants