This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Description
I create and remove some machines. After reboot my Mac the ip address are don't stable. The DHCP virtualbox daemon use the first one...
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL
dev2 virtualbox Stopped
dev3 virtualbox Stopped
tomcat * virtualbox Stopped
$ docker-machine start tomcat
INFO[0000] Waiting for VM to start...
$ docker $(docker-machine config tomcat) ps
FATA[0000] An error occurred trying to connect: Get https://192.168.99.100:2376/v1.16/containers/json: x509: certificate is valid for 192.168.99.103, not 192.168.99.100
How I can regenerate the certs and upload it to the box?
The original boot2docker regenerate the certs after an ip address change...