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

Proposal: add ec2 support for 'Root device type: instance-store' #1284

Open bmangold opened 9 years ago

bmangold commented 9 years ago

Currently all ec2 instances created assume the AMI to be 'Root device type: ebs'. If providing an AMI with 'Root device type: instance-store', docker-machine will error:

Error creating machine: Error launching instance: Problem with AWS API call: Non-200 API response: code=400 message=EBS block device mappings not supported for instance-store AMIs.

example AMI: ami-e9f1ced9

jeffellin commented 8 years ago

I ran into this the other day. Would be nice to add an additional flag to prevent the creation of a EBS root fs.

l15k4 commented 7 years ago

Any update on this one? Most of my machines don't persist any data that should survive stopping the instance and I'm only interested in IOPS and throughput and thus EBS is pretty much the opposite of what I need.

crgwbr commented 6 years ago

It would also be great to allow passing in a block-device mapping from the CLI. Between that and user-data, you could have the docker-machine instance use EBS for it's root volume (meaning it's faster to boot-up), but mount /tmp, /var/lib/docker, etc on a fast ephemeral instance store. This would be perfect for CI runners and other workloads which need performance more than persistence.