Just to report that it appears that the AMI being used by docker-machine when running
docker-machine create --driver amazonec2 aws01 is failing after provisioning the instance and trying to start Docker. It reports the following error:
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "***.***.***.***:2376": dial tcp ***.***.***.***:2376: i/o timeout You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'. Be advised that this will trigger a Docker daemon restart which will stop running containers.
When you try to run the
regenerate-certs command it also fails because it cannot find the docker daemon in the remote ec2 instance.
I figured that maybe it was an Amazon AMI problem with that specific default ec2 instance image. Therefore, I forced the
docker-machine create command to use a specific AMI (the latest Ubuntu image available in AWS EC2) and it worked flawlessly! This is the command I used that worked perfectly:
docker-machine create --driver amazonec2 --amazonec2-zone=b --amazonec2-ami=ami-40d28157 aws02
I think that maybe the issue is solved by only updating the docker-machine version used in the docker toolbox for the Mac. FYI I am using Docker version: 583d1b8ffe and Docker Machine version: 0.8.2, build e18a919.
Let me know if you need any more info.