docker / machine

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

Unable to create AWS M5 instances #4454

Open aklinkert opened 6 years ago

aklinkert commented 6 years ago

Hi there,

I tried to create an M5 machine on AWS with docker-machine and got the following error:

Error creating machine: Error in driver during machine creation: Error launching instance: InvalidParameterCombination: Enhanced networking with the Elastic Network Adapter (ENA) is required for the 'm5.xlarge' instance type. Ensure that you are using an AMI that is enabled for ENA.

Seems like the docker-machine AMI is too old. Is there a way to specify a newer one?

guikcd commented 6 years ago

You can use --amazonec2-ami option.

BTW, m5 seems to work well with 1e3b6b64:

$ docker-machine create --driver amazonec2 --amazonec2-region "eu-west-3" --amazonec2-instance-type "m5.xlarge" testm5
$ for data in instance-type ami-id; do docker-machine ssh testm5 curl --silent http://169.254.169.254/latest/meta-data/$data; done
m5.xlarge
ami-9465d3e9