-
Notifications
You must be signed in to change notification settings - Fork 2k
Docker-machine can't ssh into new machine if --amazonec2-ssh-user is set #2567
Comments
I am having the same problem, in my case the ec2 machine initializes, is "running" for about half a minute, then stops itself |
+1 Using latest version 0.5.5 docker-machine create --driver amazonec2 Running pre-create checks... |
I think non issue, see: #1954 for details. AWS Subnet needs to have Route Table associated from the VPC that you set up previously before running docker-machine create. Referenced issue has the details. Configure AWS properly, re-run creation and things worked for me. |
@ignasi35 while looking at your cli it sounds like you don't use a custom AMI. |
I assumed the parameter would allow to to create an EC2 machine where only the provided username would have access. Something in the form of: "create instance with default user, useradd 'abc', delete default user". I got a bit carried away. PS: I don't have much experience in AWS and some well-known practices when dealing with new machines still go over my head. |
I thought the same at first, the documentation was scarse, but has been updated since. I'm going to close this. Please re-open if I missed something. |
I'm creating a docker-machine using driver amazonec2 and setting an ssh user with the driver's option:
This seems to be stuck when trying to SSH into the newly created machine:
After some test-and-fail (I even tried #964 (comment) with several certs) I removed the option
--amazonec2-ssh-user myuser
and the command succeeded.The text was updated successfully, but these errors were encountered: