1. 程式人生 > >安裝docker時出現報錯,curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

安裝docker時出現報錯,curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

$ sudo curl -sSL  https://get.docker.com/ | sh
curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

新裝的系統,裝docker的時候出現這個報錯

解決方案是:

瞅下本機dns配置,/etc/resolv.conf

sudo vim /etc/resolv.conf

新增阿里的dns

nameserver  223.5.5.5
nameserver  223.6.6.6

就可以了