From 227bf170fdebd5973d97ef16e906fccdab9d532b Mon Sep 17 00:00:00 2001 From: Aaron Feng Date: Tue, 17 Jun 2014 18:44:21 -0400 Subject: [PATCH] cloudinit to provision docker Docker-DCO-1.1-Signed-off-by: Aaron Feng (github: aaronfeng) --- backends/ec2.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/ec2.go b/backends/ec2.go index b276e5f6d8..b97d0a59f9 100644 --- a/backends/ec2.go +++ b/backends/ec2.go @@ -195,10 +195,13 @@ func (c *ec2Client) tagtInstance() error { } func (c *ec2Client) startInstance() error { + // TODO (aaron): make sure to wait for cloud-init to finish before + // executing docker commands options := ec2.RunInstances{ ImageId: c.config.ami, InstanceType: c.config.instanceType, KeyName: c.config.keypair, + UserData: []byte("#include https://get.docker.io"), } resp, err := c.ec2Conn.RunInstances(&options)