找回密码
 注册
关于网站域名变更的通知
查看: 344|回复: 2
打印 上一主题 下一主题

请问docker里的容器怎么样才能够访问https啊?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2020-8-20 15:06 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
环境是vBox里的centOS8,是可以访问https的,docker里容器不行。
% Z. X" z6 W$ V+ g& t0 \. G. i
: X+ j2 S+ K# I  R. i; ?curl http://www.baidu.com 可以
. P6 `, j/ P- V$ O1 B8 bcurl https://www.baidu.com 不可以
! M9 j* d: E7 B+ g
2 @* _6 g# d7 K8 O! y% a. X6 P报错:curl: (60) SSL certificate problem: unable to get local issuer certificate
0 y0 ?4 I1 Q% E8 W, HMore details here: https://curl.haxx.se/docs/sslcerts.html
( q' k7 u8 W% o6 a  g9 [
; P4 }, n% y* {3 }4 Z  p, K- y2 `- \curl failed to verify the legitimacy of the server and therefore could not
4 @2 E, @& H  U5 Y8 Cestablish a secure connection to it. To learn more about this situation and9 J) a0 j3 d1 X& r# W  `  H
how to fix it, please visit the web page mentioned above.
4 [6 g1 _" w9 ?& O; M# {) y  B4 }; J
4 h( c2 l1 l( T1 |% p0 I- X . M, M8 X, @1 J7 e

该用户从未签到

2#
发表于 2020-8-20 15:41 | 只看该作者
感觉会Linux的人都好帅的啊

该用户从未签到

3#
发表于 2020-8-20 16:04 | 只看该作者
curl -k xxxxxxx 忽略证书
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-11-24 23:13 , Processed in 0.218750 second(s), 27 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表