-
Notifications
You must be signed in to change notification settings - Fork 2k
keypair prevents creation of machine with same name as the one just removed #661
Comments
+1 it would also/meanwhile be useful for the error message to point to how to remove such a keypair -- I get this error even when |
I have run into this as well. Does anyone know where these keypairs are being created? I have looked around in the machine storage path and in my home directory and come up empty. |
Ok, so now I get it. This is the "Key Pair" in EC2, not anything stored locally. I was able to remove them in the EC2 management console and now all is well. |
+1 @dougborg |
It would also be helpful to be able to pass --amazonec2-keypair-name=whatever to re-use existing keypairs. |
👍 just ran into this - working within a group - we have a keypair we're sharing. |
+1 I ran into this today too. |
👍 |
+1 as well. In my case it is telling me this even though when doing an |
+1 |
+:1 for |
+1 |
+1 for --amazonec2-keypair-name |
You can delete the keypair in the AWS console. "Network & Security" -> "Key Pairs" -> "Delete" |
+1 for keypair-name option |
|
I keep running into this issue as well. Our automated docker machine creation scripts often fail and leave behind existing key pairs and then cause even more failures which require manual intervention to fix. |
Signed-off-by: Viktor Stanchev <me@viktorstanchev.com>
add --amazonec2-keypair-name flag, fix #661
This bug is not fully fixed. The unhelpful error message is still there. It should read:
|
I've just seen this issue too, on 1.5.3. In my case, the console showed no key pair with the relevant name, and neither did |
Creating a keypair for every new instance is an ugly kludge, and it's what's causing the underlying problem. True use of an existing key pair without duplication is the real solution. When with that be implemented. Simply saying 'delete the keypair manually from aws' may be a workaround, but it is NOT a solution. How is clustering supposed to work with that? That won't scale. |
@m-dunbar |
Add ntpd and crond that restarts it, which combats the boot2docker suspend issue
If the create command fails (in this case because I forgot the vpc-id flag) and I remove the failed image, I can't create a new one with the same name because the keypair doesn't get deleted:
It seems that
rm -f
should remove associated keypairs.Related: #119.
The text was updated successfully, but these errors were encountered: