Created
June 23, 2015 20:21
-
-
Save sgates/10a7ef971aa4eb4e168b to your computer and use it in GitHub Desktop.
Boot2Docker x509 Error workaround
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Start the boot2docker machine (boot2docker start), get an error like this: | |
#TLS handshake error from 192.168.59.3:53358: tls: failed to verify client's certificate: x509: certificate has expired or is not yet valid | |
#find machine IP with this: | |
$ boot2docker ip | |
$ ssh docker@<boot2dockerip> | |
#password: tcuser | |
#Create / edit this file: /var/lib/boot2docker/profile | |
#Add this: | |
wait4eth1() { | |
CNT=0 | |
until ip a show eth1 | grep -q UP | |
do | |
[ $((CNT++)) -gt 60 ] && break || sleep 1 | |
done | |
sleep 1 | |
} | |
wait4eth1 | |
#shut the boot2docker machine down, and start back up - should work now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment