{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1805","repository_url":"https://api.github.com/repos/docker/machine","labels_url":"https://api.github.com/repos/docker/machine/issues/1805/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1805/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1805/events","html_url":"https://github.com/docker/machine/issues/1805","id":104867141,"number":1805,"title":"No certificate / key created when creating a new docker machine using the aws driver","user":{"login":"bahaaldine","id":820299,"avatar_url":"https://avatars.githubusercontent.com/u/820299?v=3","gravatar_id":"","url":"https://api.github.com/users/bahaaldine","html_url":"https://github.com/bahaaldine","followers_url":"https://api.github.com/users/bahaaldine/followers","following_url":"https://api.github.com/users/bahaaldine/following{/other_user}","gists_url":"https://api.github.com/users/bahaaldine/gists{/gist_id}","starred_url":"https://api.github.com/users/bahaaldine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahaaldine/subscriptions","organizations_url":"https://api.github.com/users/bahaaldine/orgs","repos_url":"https://api.github.com/users/bahaaldine/repos","events_url":"https://api.github.com/users/bahaaldine/events{/privacy}","received_events_url":"https://api.github.com/users/bahaaldine/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2015-09-04T10:39:30Z","updated_at":"2016-10-15T03:53:24Z","closed_at":"2015-09-09T17:25:32Z","body":"Hi,\r\n\r\nSo I'm running docker-machine 0.4.1 and I'm basically trying to create a docker-machine on AWS.\r\nThe creation works, I can see my VM spinning up on AWS, but I can't switch my default machine on it, meaning the following command:\r\n\r\n```bash\r\ndocker-machine env docker-machine-i1\r\n```\r\nreturns:\r\n\r\n```bash\r\nopen /Users/bahaaldine/.docker/machine/machines/docker-machine-i1/ca.pem: no such file or directory\r\n```\r\n\r\nA docker-machine ls gives:\r\n```bash\r\nNAME                ACTIVE   DRIVER       STATE     URL                         SWARM\r\ndefault                      *        virtualbox   Running   tcp://192.168.99.100:2376   \r\ndocker-machine-i1            amazonec2    Running   tcp://XXX.XXX.XXX.XXX:2376 \r\n```\r\n\r\nThis is how I've created the AWS machine:\r\n```bash\r\ndocker-machine -D create \\\r\n    --driver amazonec2 \\\r\n    --amazonec2-access-key $AWS_ACCESS_KEY \\\r\n    --amazonec2-secret-key $AWS_SECRET_KEY \\\r\n    --amazonec2-vpc-id $AWS_VPC_ID \\\r\n    --amazonec2-zone b \\\r\n    docker-machine-i1\r\n```\r\n\r\nWhen I compare the content of \r\n```bash\r\n/Users/bahaaldine/.docker/machine/machines/default\r\n```\r\nto \r\n```bash\r\n/Users/bahaaldine/.docker/machine/machines/docker-machine-i1\r\n```\r\nFollowing files are missing:\r\n\r\n```bash\r\nca.pem\r\ncert.pem\r\nserver.pem\r\nserver-key.pem\r\n```\r\nMy default environment variable are configured like following:\r\n```bash\r\nexport DOCKER_HOST=tcp://192.168.99.100:2376\r\nexport DOCKER_CERT_PATH=/Users/bahaaldine/.docker/machine/machines/default\r\nexport DOCKER_MACHINE_NAME=default\r\nexport DOCKER_TLS_VERIFY=1\r\n```\r\n\r\nStill an :\r\n```bash\r\neval \"$(docker-machine env docker-machine-i1)\"\r\n```\r\ngives:\r\n```\r\nopen /Users/bahaaldine/.docker/machine/machines/docker-machine-i1/ca.pem: no such file or directory\r\n```\r\n\r\nAny thoughts?\r\n\r\nThanks,\r\nBaha"},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/253960752","html_url":"https://github.com/docker/machine/issues/1805#issuecomment-253960752","issue_url":"https://api.github.com/repos/docker/machine/issues/1805","id":253960752,"user":{"login":"drewcrawford","id":183400,"avatar_url":"https://avatars.githubusercontent.com/u/183400?v=3","gravatar_id":"","url":"https://api.github.com/users/drewcrawford","html_url":"https://github.com/drewcrawford","followers_url":"https://api.github.com/users/drewcrawford/followers","following_url":"https://api.github.com/users/drewcrawford/following{/other_user}","gists_url":"https://api.github.com/users/drewcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/drewcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewcrawford/subscriptions","organizations_url":"https://api.github.com/users/drewcrawford/orgs","repos_url":"https://api.github.com/users/drewcrawford/repos","events_url":"https://api.github.com/users/drewcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/drewcrawford/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T03:53:24Z","updated_at":"2016-10-15T03:53:24Z","body":"Braindump from debugging this.\r\n\r\nThis error can be produced in the case that an SSH connection cannot be made to the remote machine, or that docker ultimately does not start up on the instance.\r\n\r\nThat can reflect, e.g. a provisioning issue.  It can also reflect an issue like #2898 where the instance does not start.  Further, it can reflect some configuration error, for example `ubuntu` is the default `amazonec2-ssh-user`, but for instances of some other OS, `ubuntu` is not a valid user and SSH will not succeed."}}
{"actor":{"display_login":"drewcrawford"}}