cloudinit to provision docker

Docker-DCO-1.1-Signed-off-by: Aaron Feng <aaron.feng@gmail.com> (github: aaronfeng)
This commit is contained in:
Aaron Feng 2014-06-17 18:44:21 -04:00
parent 361f9e6085
commit 227bf170fd
1 changed files with 3 additions and 0 deletions

View File

@ -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)