mirror of https://github.com/docker/docs.git
cloudinit to provision docker
Docker-DCO-1.1-Signed-off-by: Aaron Feng <aaron.feng@gmail.com> (github: aaronfeng)
This commit is contained in:
parent
361f9e6085
commit
227bf170fd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue