{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/2492","labels_url":"https://api.github.com/repos/docker/machine/issues/2492/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/2492/comments","events_url":"https://api.github.com/repos/docker/machine/issues/2492/events","html_url":"https://github.com/docker/machine/issues/2492","id":120308810,"number":2492,"title":"Unable to create a docker machine with a private IP address on AWS, with 0.5.1","user":{"login":"mwarren2","id":10817233,"avatar_url":"https://avatars.githubusercontent.com/u/10817233?v=3","gravatar_id":"","url":"https://api.github.com/users/mwarren2","html_url":"https://github.com/mwarren2","followers_url":"https://api.github.com/users/mwarren2/followers","following_url":"https://api.github.com/users/mwarren2/following{/other_user}","gists_url":"https://api.github.com/users/mwarren2/gists{/gist_id}","starred_url":"https://api.github.com/users/mwarren2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwarren2/subscriptions","organizations_url":"https://api.github.com/users/mwarren2/orgs","repos_url":"https://api.github.com/users/mwarren2/repos","events_url":"https://api.github.com/users/mwarren2/events{/privacy}","received_events_url":"https://api.github.com/users/mwarren2/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/driver/ec2","name":"driver/ec2","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-04T01:00:55Z","updated_at":"2016-01-12T03:55:52Z","closed_at":null,"body":"I have a micro which I am playing with on AWS - using an Ubuntu image 14.04\r\nI had set up several docker containers in development on my Mac - which by default requires a docker machine - so I would like the same set up as far as possible on AWS.\r\n\r\nI set up docker for AWS exactly as described in the docker documentation, and was able to start almost immediately a docker-machine instance with a public IP. Great. It works.\r\n\r\nBut since docker-machine in my mac setup runs on a private address, I would like to do something very similar on AWS.\r\nBut as soon as I added  **--amazonec2-private-address-only**, the trouble started.\r\nIt hung for ever but did eventually start a docker-machine with a private IP address.\r\n\r\nBut if I run \r\n```\r\neval \"$(docker-machine env my-private-machine)\"\r\n```\r\n\r\nI get the dreaded\r\n```\r\nError running connection boilerplate: Error checking and/or regenerating the certs: There was an error validating certificates for host \"172.31.46.107:2376\": open /home/malcolm/.docker/machine/machines/sagrona-private/server.pem: no such file or directory\r\nYou can attempt to regenerate them using 'docker-machine regenerate-certs name'.\r\nBe advised that this will trigger a Docker daemon restart which will stop running containers.\r\n```\r\nI did as the message suggested, but then it just hung.\r\n\r\nHere is docker version:\r\n```\r\nmalcolm@ip-172-31-45-136:~$ sudo docker version\r\nClient:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.9.1\r\n API version:  1.21\r\n Go version:   go1.4.2\r\n Git commit:   a34a1d5\r\n Built:        Fri Nov 20 13:12:04 UTC 2015\r\n OS/Arch:      linux/amd64\r\n```\r\n\r\nand here is a debug\r\n```\r\nmalcolm@ip-172-31-45-136:~$ docker-machine --debug create -d amazonec2 --amazonec2-access-key ACCESS_KEY --amazonec2-secret-key SECRET_KEY --amazonec2-zone b --amazonec2-region eu-west-1 --amazonec2-vpc-id VPC_ID --amazonec2-private-address-only my-private-machine\r\n\r\nDocker Machine Version: 0.5.1 (7e8e38e)\r\nFound binary path at /usr/local/bin/docker-machine-driver-amazonec2\r\nLaunching plugin server for driver amazonec2\r\nPlugin server listening at address 127.0.0.1:34515\r\n() Calling RPCServerDriver.GetVersion\r\nUsing API Version 1\r\n() Calling RPCServerDriver.SetConfigRaw\r\n() Calling RPCServerDriver.GetMachineName\r\n(flag-lookup) Calling RPCServerDriver.GetCreateFlags\r\nMaking call to close connection to plugin binary\r\nMaking call to close driver server\r\n(flag-lookup) Calling RPCServerDriver.Close\r\nSuccessfully made call to close driver server\r\nFound binary path at /usr/local/bin/docker-machine-driver-amazonec2\r\nLaunching plugin server for driver amazonec2\r\nPlugin server listening at address 127.0.0.1:50826\r\n() Calling RPCServerDriver.GetVersion\r\nUsing API Version 1\r\n() Calling RPCServerDriver.SetConfigRaw\r\n() Calling RPCServerDriver.GetMachineName\r\n(sagrona-private) Calling RPCServerDriver.GetMachineName\r\n(sagrona-private) Calling RPCServerDriver.DriverName\r\n(sagrona-private) Calling RPCServerDriver.GetCreateFlags\r\n(sagrona-private) Calling RPCServerDriver.SetConfigFromFlags\r\nRunning pre-create checks...\r\n(sagrona-private) Calling RPCServerDriver.PreCreateCheck\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeKeyPairs\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeSubnets\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Filter.1.Name\": [\r\n(sagrona-private) DBG |         \"availabilityZone\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Filter.1.Value\": [\r\n(sagrona-private) DBG |         \"eu-west-1b\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Filter.2.Name\": [\r\n(sagrona-private) DBG |         \"vpc-id\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Filter.2.Value\": [\r\n(sagrona-private) DBG |         \"vpc-21396f44\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetConfigRaw\r\n(sagrona-private) Calling RPCServerDriver.GetConfigRaw\r\nCreating machine...\r\n(sagrona-private) Calling RPCServerDriver.Create\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeKeyPairs\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) OUT | Launching instance...\r\n(sagrona-private) DBG | creating key pair: sagrona-private\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"ImportKeyPair\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"KeyName\": [\r\n(sagrona-private) DBG |         \"sagrona-private\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"PublicKeyMaterial\": [\r\n(sagrona-private) DBG |         \"c3NoLXJzYSBBQUFBQjNOemFDMXljMkVBQUFBREFRQUJBQUFCQVFDdlh6L3l2L01maWY2WHRZRlNMYXFxeHZSQUFFVzFUbk1BOU00N1pOcGFrL2wwOE9TaEFQQ1VxSXhRZlV4NkJjdGZZV1Z6NGVIbjUxbUhUWVhVMnZjOE0yN1ZRVGF6aUhJdElIWU1tZ2M0ZlhCcmpYdDNUK290b0h0cVpjZWNBRHdXMGkvL3NrQWwrazl5NzZvK2E5ZFVwejB5M3dRNnRRd3dRTm9ITHNndUJ5aUZINVhlZUgrbloxU2Y2MXdqeCtmZjFWTDBqNFpjWmxJVDdkUVJQSlI5QkU5aW95UmhZVTBuTGJ0UEhhNllQUWR4UFREYnRCbThGYnhSNGp2SEtFUitYWjVqNjVKK2lPK1prTVhCenVDTTFsekNPVW8zWCtmVlVUcjBMNWcxS2pLbC9vWkNlNFRKSTZVYlcxdE1pbmFBUlcvVGxMMTJ3SHlCNURWcGNuUmoK\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | configuring security group in vpc-21396f44\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeSecurityGroups\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | found existing security group (docker-machine) in vpc-21396f44\r\n(sagrona-private) DBG | configuring security group authorization for 0.0.0.0/0\r\n(sagrona-private) DBG | launching instance in subnet subnet-88a0d9d1\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"RunInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"BlockDeviceMapping.0.DeviceName\": [\r\n(sagrona-private) DBG |         \"/dev/sda1\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"BlockDeviceMapping.0.Ebs.DeleteOnTermination\": [\r\n(sagrona-private) DBG |         \"1\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"BlockDeviceMapping.0.Ebs.VolumeSize\": [\r\n(sagrona-private) DBG |         \"16\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"BlockDeviceMapping.0.Ebs.VolumeType\": [\r\n(sagrona-private) DBG |         \"gp2\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"BlockDeviceMapping.0.VirtualName\": [\r\n(sagrona-private) DBG |         \"\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"ImageId\": [\r\n(sagrona-private) DBG |         \"ami-45d8a532\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceType\": [\r\n(sagrona-private) DBG |         \"t2.micro\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"KeyName\": [\r\n(sagrona-private) DBG |         \"sagrona-private\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"MaxCount\": [\r\n(sagrona-private) DBG |         \"1\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"MinCount\": [\r\n(sagrona-private) DBG |         \"1\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Monitoring.Enabled\": [\r\n(sagrona-private) DBG |         \"0\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"NetworkInterface.0.AssociatePublicIpAddress\": [\r\n(sagrona-private) DBG |         \"0\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"NetworkInterface.0.DeviceIndex\": [\r\n(sagrona-private) DBG |         \"0\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"NetworkInterface.0.SecurityGroupId.0\": [\r\n(sagrona-private) DBG |         \"sg-f01e8394\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"NetworkInterface.0.SubnetId\": [\r\n(sagrona-private) DBG |         \"subnet-88a0d9d1\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Placement.AvailabilityZone\": [\r\n(sagrona-private) DBG |         \"eu-west-1b\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | waiting for ip address to become available\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Got the IP Address, it's \"172.31.41.193\"\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) DBG | created instance ID i-00810f8d, IP address 172.31.41.193, Private IP address 172.31.41.193\r\n(sagrona-private) DBG | Settings tags for instance\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"CreateTags\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"ResourceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Tag.1.Key\": [\r\n(sagrona-private) DBG |         \"Name\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Tag.1.Value\": [\r\n(sagrona-private) DBG |         \"sagrona-private\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetConfigRaw\r\n(sagrona-private) Calling RPCServerDriver.GetConfigRaw\r\n(sagrona-private) Calling RPCServerDriver.DriverName\r\nWaiting for machine to be running, this may take a few minutes...\r\n(sagrona-private) Calling RPCServerDriver.GetState\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\nMachine is running, waiting for SSH to be available...\r\nGetting to WaitForSSH function...\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nexit 0\r\nSSH cmd err, output: exit status 255: \r\nError getting ssh command 'exit 0' : Something went wrong running an SSH command!\r\ncommand : exit 0\r\nerr     : exit status 255\r\noutput  : \r\n\r\nGetting to WaitForSSH function...\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nexit 0\r\nSSH cmd err, output: exit status 255: \r\nError getting ssh command 'exit 0' : Something went wrong running an SSH command!\r\ncommand : exit 0\r\nerr     : exit status 255\r\noutput  : \r\n\r\nGetting to WaitForSSH function...\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nexit 0\r\nSSH cmd err, output: exit status 255: \r\nError getting ssh command 'exit 0' : Something went wrong running an SSH command!\r\ncommand : exit 0\r\nerr     : exit status 255\r\noutput  : \r\n\r\nGetting to WaitForSSH function...\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nexit 0\r\nSSH cmd err, output: exit status 255: \r\nError getting ssh command 'exit 0' : Something went wrong running an SSH command!\r\ncommand : exit 0\r\nerr     : exit status 255\r\noutput  : \r\n\r\nGetting to WaitForSSH function...\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nexit 0\r\nSSH cmd err, output: <nil>: \r\nDetecting operating system of created instance...\r\nDetecting the provisioner...\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\ncat /etc/os-release\r\nSSH cmd err, output: <nil>: NAME=\"Ubuntu\"\r\nVERSION=\"14.04.2 LTS, Trusty Tahr\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 14.04.2 LTS\"\r\nVERSION_ID=\"14.04\"\r\nHOME_URL=\"http://www.ubuntu.com/\"\r\nSUPPORT_URL=\"http://help.ubuntu.com/\"\r\nBUG_REPORT_URL=\"http://bugs.launchpad.net/ubuntu/\"\r\n\r\nfound compatible host: ubuntu\r\nProvisioning created instance...\r\n(sagrona-private) Calling RPCServerDriver.GetMachineName\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nsudo hostname sagrona-private && echo \"sagrona-private\" | sudo tee /etc/hostname\r\nSSH cmd err, output: <nil>: sudo: unable to resolve host sagrona-private\r\nsagrona-private\r\n\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nif grep -xq 127.0.1.1.* /etc/hosts; then sudo sed -i 's/^127.0.1.1.*/127.0.1.1 sagrona-private/g' /etc/hosts; else echo '127.0.1.1 sagrona-private' | sudo tee -a /etc/hosts; fi\r\nSSH cmd err, output: <nil>: sudo: unable to resolve host sagrona-private\r\n127.0.1.1 sagrona-private\r\n\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nsudo apt-get update\r\nSSH cmd err, output: <nil>: Err http://security.ubuntu.com trusty-security InRelease\r\n  \r\nErr http://security.ubuntu.com trusty-security Release.gpg\r\n  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]\r\nErr http://archive.ubuntu.com trusty InRelease\r\n  \r\nErr http://archive.ubuntu.com trusty-updates InRelease\r\n  \r\nErr http://archive.ubuntu.com trusty Release.gpg\r\n  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]\r\nErr http://archive.ubuntu.com trusty-updates Release.gpg\r\n  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]\r\nReading package lists...\r\nW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/InRelease  \r\n\r\nW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease  \r\n\r\nW: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease  \r\n\r\nW: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg  Cannot initiate the connection to security.ubuntu.com:80 (2001:67c:1562::16). - connect (101: Network is unreachable) [IP: 2001:67c:1562::16 80]\r\n\r\nW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]\r\n\r\nW: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8c01::18). - connect (101: Network is unreachable) [IP: 2001:67c:1360:8c01::18 80]\r\n\r\nW: Some index files failed to download. They have been ignored, or old ones used instead.\r\n\r\npackage: action=install name=curl\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nDEBIAN_FRONTEND=noninteractive sudo -E apt-get install -y  curl\r\nSSH cmd err, output: <nil>: Reading package lists...\r\nBuilding dependency tree...\r\nReading state information...\r\ncurl is already the newest version.\r\n0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\r\n\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nif ! type docker; then curl -sSL https://get.docker.com | sh -; fi\r\nSSH cmd err, output: <nil>: bash: line 0: type: docker: not found\r\ncurl: (7) Failed to connect to get.docker.com port 443: Connection timed out\r\n\r\n(sagrona-private) Calling RPCServerDriver.GetSSHHostname\r\n(sagrona-private) DBG | Making AWS API call with values:\r\n(sagrona-private) DBG | {\r\n(sagrona-private) DBG |     \"Action\": [\r\n(sagrona-private) DBG |         \"DescribeInstances\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"InstanceId.1\": [\r\n(sagrona-private) DBG |         \"i-00810f8d\"\r\n(sagrona-private) DBG |     ],\r\n(sagrona-private) DBG |     \"Version\": [\r\n(sagrona-private) DBG |         \"2014-06-15\"\r\n(sagrona-private) DBG |     ]\r\n(sagrona-private) DBG | }\r\n(sagrona-private) Calling RPCServerDriver.GetSSHPort\r\n(sagrona-private) Calling RPCServerDriver.GetSSHKeyPath\r\n(sagrona-private) Calling RPCServerDriver.GetSSHUsername\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nsudo docker version\r\nSSH cmd err, output: exit status 1: sudo: docker: command not found\r\n\r\nWARNING >>> Error getting SSH command to check if the daemon is up: Something went wrong running an SSH command!\r\ncommand : sudo docker version\r\nerr     : exit status 1\r\noutput  : sudo: docker: command not found\r\n```\r\n\r\nThese last four lines repeat 60 times  \r\n```\r\n......\r\n......\r\n\r\n\r\nError creating machine: Error running provisioning: Maximum number of retries (60) exceeded\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/170778770","html_url":"https://github.com/docker/machine/issues/2492#issuecomment-170778770","issue_url":"https://api.github.com/repos/docker/machine/issues/2492","id":170778770,"user":{"login":"jeffellin","id":11721615,"avatar_url":"https://avatars.githubusercontent.com/u/11721615?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffellin","html_url":"https://github.com/jeffellin","followers_url":"https://api.github.com/users/jeffellin/followers","following_url":"https://api.github.com/users/jeffellin/following{/other_user}","gists_url":"https://api.github.com/users/jeffellin/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffellin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffellin/subscriptions","organizations_url":"https://api.github.com/users/jeffellin/orgs","repos_url":"https://api.github.com/users/jeffellin/repos","events_url":"https://api.github.com/users/jeffellin/events{/privacy}","received_events_url":"https://api.github.com/users/jeffellin/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T03:55:52Z","updated_at":"2016-01-12T03:55:52Z","body":"@mwarren2 How are you accessing the private ip?  Usually it is going to be non routable from your mac unless you have a vpn of some sort into your VPC.   We use the private ip address option all the time and I am constantly reminding my coworkers that it won't work unless you are connected to the VPN."}}