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

可以在docker的centos中使用吗? #28

Closed
YijianLiu opened this issue Nov 15, 2022 · 11 comments
Closed

可以在docker的centos中使用吗? #28

YijianLiu opened this issue Nov 15, 2022 · 11 comments

Comments

@YijianLiu
Copy link

我尝试在linux的docker中使用,docker容器的系统是centos,当我使用您的go.sh,用命令./go.sh,出现如下错误
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

@mzz2017
Copy link
Owner

mzz2017 commented Nov 15, 2022

从releases下载,或者宿主机下载了拷贝进去。
镜像站用的let's enceypt的证书,centos 6/ubuntu 16等老的发行版可能会存在根证书过期的问题。

@YijianLiu
Copy link
Author

目前我已经从releases下载了,gg-linux-arm64然后拷贝到容器里面了?下一步应该怎么使用呢?

@mzz2017
Copy link
Owner

mzz2017 commented Nov 16, 2022

你是arm?
使用方法读readme

@YijianLiu
Copy link
Author

我自己的ubuntu已经安装成功了,但是想在docker里下载的时候,存在证书过期问题,您说的下载好拷贝进去如何操作呢?

@mzz2017
Copy link
Owner

mzz2017 commented Nov 16, 2022

https://www.jibing57.com/2021/10/09/process-expired-let-s-encrypt-ca-in-centos-7/

我帮你谷歌了一下怎么解决这个问题

@YijianLiu
Copy link
Author

https://www.jibing57.com/2021/10/09/process-expired-let-s-encrypt-ca-in-centos-7/

我帮你谷歌了一下怎么解决这个问题

谢谢您,不过问题还没解决,有办法通过源码安装吗???

@mzz2017
Copy link
Owner

mzz2017 commented Nov 16, 2022

你如果可以在docker里访问github,可以不用镜像站安装

另外当然可以从源码构建

@YijianLiu
Copy link
Author

多谢您,现在就是我不知道如何通过您的源码进行构建,需要什么指令,您方便给一下吗~感谢

@mzz2017
Copy link
Owner

mzz2017 commented Nov 16, 2022

go build .

@mzz2017
Copy link
Owner

mzz2017 commented Nov 16, 2022

已解决证书问题,你可以再试

@YijianLiu
Copy link
Author

已解决证书问题,你可以再试

太感谢了!!,现在已经可以啦,貌似配置好订阅仓库以后,就可以完成git相关操作了

@mzz2017 mzz2017 closed this as completed Nov 16, 2022
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

2 participants