Docker installation in Vagrant VM failed
I am using Vagrant and Docker and this problem came up when I am vagrant up
my machine, it works fine before:
==> 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.
Do you have any idea what caused this problem? or how to fix it?
source to share
As in curl: (35) Unknown SSL protocol error on connection , you can try and debug it with
curl -v https://get.docker.io/gpg
This article had an access issue:
I noticed that it was connecting at iPV6. I was not sure if our PG server supports iPV6.
Looking at Curls manpages, I saw an option to resolve domain name to IPv4 address. When I tried:
curl -v -4 https://my.pg.server
It worked.
source to share
I just ran into this problem using 1.6.5 and found it was fixed in Vagrant . 1.7.2 worked for me. Funnily enough, I installed a new VM a month ago without running into a problem, maybe Docker went back and forth with SSL.
source to share