Closed posita closed 9 years ago
Hello, sorry for the delay of response.
As @legal90 stated in https://github.com/Parallels/boot2docker-vagrant-box/issues/17#issuecomment-126897367 , this is related to vagrant that create the network interface AFTER the docker Daemon start.
I provide in my box a workaround documented here (which is related to also getting those certificates in the client side) : https://github.com/dduportal/boot2docker-vagrant-box#tips--tricks (See block containing Thanks to @Freyskeyd)
) which basically make you restart the daemon.
Problem is that the vagrant lifecycle is not tied at all with docker one. We tried to add a docker restart as provisioning, but it began to create race conditions with the boot local.sh script, when tuning your docker daemon, so I made the choice to let people do the manual action the first time, since they need to fetch the certificate from the /vagrant share.
If you have any idea, i'm open for help , do not hesitate to reopen the issue :)
Thanks for your feedbacks !
@dduportal, understood and thanks. It sounds like forcing recreation of the certificates during provisioning is the way to go. Thanks for the detailed explanation!
I'm using this
Vagrantfile
. Note (from L20;VM_IP_ADDR
defaults to10.1.2.3
):When I attempt to connect to the explicit IP from the host, I'm rejected. It looks like the certificate only accommodates
localhost
and the dynamic IP set by Vagrant:See also Parallels/boot2docker-vagrant-box#17.