安装docker时出现报错,curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated.

来源:互联网 发布:心理量表软件 编辑:程序博客网 时间:2024/06/05 23:06
$ 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

就可以了

阅读全文
0 0
原创粉丝点击