我在新的专用服务器上安装了 docker(在通用的 ubuntu 14.0 - linux 内核 3.13.0-71 上)。我安装了一个ubuntu docker镜像来测试环境。( docker run -it ubuntu bash )并且我安装了带有 openssl 支持的 curl。
当我尝试获取 HTTP 页面的内容时,我没有问题。当我尝试加载 HTTPS 页面时,我的连接被拒绝:
root@835f01fef568:/# curl https://www.google.com
curl: (7) Failed to connect to www.google.com port 443: Connection refused
Run Code Online (Sandbox Code Playgroud)
在详细模式下,我有:
root@835f01fef568:/# curl -V https://www.google.com
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL …Run Code Online (Sandbox Code Playgroud)