Skip to content

Instantly share code, notes, and snippets.

@sgates
Created June 23, 2015 20:21
Show Gist options
  • Save sgates/10a7ef971aa4eb4e168b to your computer and use it in GitHub Desktop.
Save sgates/10a7ef971aa4eb4e168b to your computer and use it in GitHub Desktop.
Boot2Docker x509 Error workaround
#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