将Docker安装到Vagrant VM失败

我正在使用stream浪汉和docker工人,这个问题发生时,我vagrant up我的机器,它工作正常之前:

 ==> default: Running provisioner: docker... default: Installing Docker (latest) onto machine... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! curl -sSL https://get.docker.io/gpg | apt-key add - Stdout from the command: Stderr from the command: stdin: is not a tty curl: (35) Unknown SSL protocol error in connection to get.docker.io:443 gpg: no valid OpenPGP data found. 

你有什么想法是什么造成了这个问题? 或如何解决它?

如curl:(35)未知的SSL协议连接错误 ,您可以尝试使用以下命令进行debugging:

 curl -v https://get.docker.io/gpg 

在文章中,这是一个访问问题:

我注意到它连接在iPV6地址上。 我不确定我们的PG服务器是否支持iPV6。

看着Curl的手册页,我看到了将域名parsing为IPv4地址的选项。 当我尝试:

 curl -v -4 https://my.pg.server 

有效。

我刚刚遇到了这个问题,使用1.6.5,发现它已经在stream浪汉中修复了 。 1.7.2为我工作。 奇怪的是,我在一个月前安装了一个新的虚拟机,而没有遇到这个问题,也许Docker已经来回使用SSL。