This message was deleted.
# rancher-desktop
a
This message was deleted.
d
It turns out that /etc/ssl/certs/ca-certificates.crt in golang:1.22.5-bullseye does not work with Rancher Desktop. If copy the one in the backend VM in, it will pass. It is also interesting to see the same container image works on Linux without any modification.
On mac with Rancher Desktop
Copy code
$ docker run -ti golang:1.22.5-bullseye bash
root@d8dcd743c07f:/go# curl <https://proxy.golang.org/github.com/%21azure/go-ansiterm/@v/v0.0.0-20210617225240-d185dfc1b5a1.mod>
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: <https://curl.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.
On Linux
Copy code
$ docker run -ti golang:1.22.5-bullseye bash
root@273fd3190da8:/go# curl <https://proxy.golang.org/github.com/%21azure/go-ansiterm/@v/v0.0.0-20210617225240-d185dfc1b5a1.mod>
module <http://github.com/Azure/go-ansiterm|github.com/Azure/go-ansiterm>

go 1.16

require <http://golang.org/x/sys|golang.org/x/sys> v0.0.0-20210616094352-59db8d763f22
It has the exact same /etc/ssl/certs/ca-certificates.crt in each container.