ssh - 将 Docker 安装到 Vagrant VM 失败

标签 ssh docker vagrant

我正在使用 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/

相关文章:

docker - 如何在Docker Entrypoint中启动以下服务

django - 创建 dockerfile 以构建新图像

amazon-web-services - ECS服务: can't pull docker image from ECR registry without assign public ip to service tasks

vagrant - 在 Vagrant 中运行临时 Ansible 命令?

bash - 无需按回车即可生成 SSH key

qt - Qt中如何轻松建立SSH连接?

python - 使用 paramiko 的 sftp 时出现 "No such file"错误

python - 子进程和 psutil : how to get a list out of subprocess. check_output?

git - 使用Atlassian打包的GitBash,SourceTree "Vagrant Up"不起作用

vagrant - 使用 Vagrant,从 Vagrant 内部访问主机上的应用程序