我正在使用 Vagrant 和 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) Unknown SSL protocol error in connection 所示,您可以尝试使用以下命令进行调试:
curl -v https://get.docker.io/gpg
在文章中,这是一个访问问题:
I noticed that it was connecting on iPV6 address. I was not sure if our PG server supported iPV6.
Looking at Curl’s man pages, I saw an option to resolve the domain name to IPv4 address. When I tried:
curl -v -4 https://my.pg.server
It worked.
关于ssh - 将 Docker 安装到 Vagrant VM 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29915798/