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

goctl下载失败 #6

Open
en-one opened this issue Feb 4, 2022 · 7 comments
Open

goctl下载失败 #6

en-one opened this issue Feb 4, 2022 · 7 comments

Comments

@en-one
Copy link

en-one commented Feb 4, 2022

构建过程:
=> [3/7] RUN GOPROXY=https://goproxy.io/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest 33.8s
=> => # go: downloading go.uber.org/automaxprocs v1.4.0
=> => # go: downloading gopkg.in/yaml.v2 v2.4.0
=> => # go: downloading github.com/zeromicro/ddl-parser v0.0.0-20210712021150-63520aca7348
=> => # go: downloading github.com/spaolacci/murmur3 v1.1.0
=> => # go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
=> => # go: downloading github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210521184019-c5ad59b459ec

总是卡在这里。
下载时间很长,进而导致docker崩溃,

@nivin-studio
Copy link
Owner

多试试,或者科学一下。

@SsnAgo
Copy link

SsnAgo commented Feb 10, 2022

同样问题,请问楼主解决了吗

@zy943453722
Copy link

同问,我也遇到了一样的问题

@zy943453722
Copy link

同问,我也遇到了一样的问题

已解决,增大docker分配内存即可

@en-one
Copy link
Author

en-one commented Apr 4, 2022

同样问题,请问楼主解决了吗

增大docker分配内存,我使用windows开发环境,修改的docker配置文件位于 C:/用户/用户名/.wslconfig 文件中,

[wsl2]
memory=6GB
swap=0
localhostForwarding=true

@SsnAgo
Copy link

SsnAgo commented Apr 5, 2022

同样问题,请问楼主解决了吗

增大docker分配内存,我使用windows开发环境,修改的docker配置文件位于 C:/用户/用户名/.wslconfig 文件中,

[wsl2]
memory=6GB
swap=0
localhostForwarding=true

感谢,因为我最开始是在云主机上的,内存不够,所以后来用win10的wsl里面装的完成。

@feng99
Copy link

feng99 commented May 2, 2022

C:/用户/用户名/.wslconfig

C:/用户/用户名/.wslconfig
我的win10 安装Docker Desktop 4.7.1后,这个目录没有这个文件

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