0
我在新的專用服務器上安裝了docker(在通用的ubuntu 14.0 - linux kernel 3.13.0-71上)。 我安裝了一個ubuntu docker鏡像來測試環境。 (docker run -it ubuntu bash),我用openssl支持安裝了curl。無法從Docker鏡像連接到HTTPS(443)
當我嘗試獲取HTTP頁面的內容時,我沒有任何問題。當我嘗試加載HTTPS頁面,我的連接被拒絕:
[email protected]:/# curl https://www.google.com
curl: (7) Failed to connect to www.google.com port 443: Connection refused
詳細模式
我:
[email protected]:/# 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 libz TLS-SRP
,如果我嘗試登錄跟蹤文件中的,我有:
== Info: Rebuilt URL to: https://www.google.com/
== Info: Hostname was NOT found in DNS cache
== Info: Trying 173.194.123.81...
== Info: connect to 173.194.123.81 port 443 failed: Connection refused
== Info: Trying 173.194.123.84...
== Info: connect to 173.194.123.84 port 443 failed: Connection refused
== Info: Trying 173.194.123.80...
== Info: connect to 173.194.123.80 port 443 failed: Connection refused
== Info: Trying 173.194.123.82...
== Info: connect to 173.194.123.82 port 443 failed: Connection refused
== Info: Trying 173.194.123.83...
== Info: connect to 173.194.123.83 port 443 failed: Connection refused
== Info: Trying 2607:f8b0:4006:80c::1013...
== Info: Immediate connect fail for 2607:f8b0:4006:80c::1013: Network is unreachable
== Info: Failed to connect to www.google.com port 443: Connection refused
== Info: Closing connection 0
我什麼我可以做:( 這不是一個DNS問題,因爲我可以ping端口80上的服務器或捲曲的HTTP內容只涉及到SSL連接有點失落。 有S^omeone在這裏有關於這個問題的任何想法?
謝謝
您能建立從主機系統到Google(或任何地方)的SSL連接嗎?這可能是防火牆問題? – helmbert
是的,如果我使用主機系統的命令curl https://www.google.com,我會收到一個有效的html內容 – user1649194