mirror of
https://github.com/docker/docs.git
synced 2026-04-13 14:56:12 +07:00
cloudinit to provision docker
Docker-DCO-1.1-Signed-off-by: Aaron Feng <aaron.feng@gmail.com> (github: aaronfeng)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user