Closed sahi1422 closed 4 years ago
I can't reproduce this.
docker run --rm --entrypoint bash lambci/lambda:go1.x -c 'curl https://google.com'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 220 100 220 0 0 2650 0 --:--:-- --:--:-- --:--:-- 2682
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>
Below two steps fixed the error:
I am getting the below error. I tried many solutions from here https://stackoverflow.com/questions/3160909/how-do-i-deal-with-certificates-using-curl-while-trying-to-access-an-https-url but it still fails.
Below is the output of :
docker inspect lambci/lambda:go1.x