docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.97k forks source link

amazone --amazonec2-ssh-keypath not used #3169

Open willembressers opened 8 years ago

willembressers commented 8 years ago

I've generated an ssh key ssh-keygen -t rsa -b 4096 -C "email"and used the public key aws.pub for importing an key-pair in AWS

when i create an instance with docker-machine create --driver amazonec2 --amazonec2-region eu-west-1 --amazonec2-instance-type t2.micro --amazonec2-tags Name,prod --amazonec2-ssh-keypath ~/.ssh/aws prod

The instance is created, but a prod key-pair is created (on AWS) and used for the EC2 instance

I prefer my own key so i can use it to FTP to the EC2 instance. What am I doing wrong? or is it a bug.

Thanks Willem

dzlab commented 8 years ago

There is already a similar issue. It seems like machine will always create new key pairs.

ndtreviv commented 4 years ago

Not ideal. Why would I want to create a new keypair for every instance I create?