github.com/feiyang21687/docker@v1.5.0/docs/sources/installation/amazon.md (about)

     1  page_title: Installation on Amazon EC2
     2  page_description: Installation instructions for Docker on Amazon EC2.
     3  page_keywords: amazon ec2, virtualization, cloud, docker, documentation, installation
     4  
     5  # Amazon EC2
     6  
     7  There are several ways to install Docker on AWS EC2. You can use Amazon Linux, which includes the Docker packages in its Software Repository, or opt for any of the other supported Linux images, for example a [*Standard Ubuntu Installation*](#standard-ubuntu-installation).
     8  
     9  **You'll need an** [AWS account](http://aws.amazon.com/) **first, of
    10  course.**
    11  
    12  ## Amazon QuickStart with Amazon Linux AMI 2014.09.1
    13  
    14  The latest Amazon Linux AMI, 2014.09.1, is Docker ready. Docker packages can be installed from Amazon's provided Software
    15  Repository.
    16  
    17  1. **Choose an image:**
    18     - Launch the [Create Instance
    19       Wizard](https://console.aws.amazon.com/ec2/v2/home?#LaunchInstanceWizard:)
    20       menu on your AWS Console.
    21     - In the Quick Start menu, select the Amazon provided AMI for Amazon Linux 2014.09.1
    22     - For testing you can use the default (possibly free)
    23       `t2.micro` instance (more info on
    24       [pricing](http://aws.amazon.com/ec2/pricing/)).
    25     - Click the `Next: Configure Instance Details`
    26        button at the bottom right.
    27  2. After a few more standard choices where defaults are probably ok,
    28     your Amazon Linux instance should be running!
    29  3. SSH to your instance to install Docker :
    30     `ssh -i <path to your private key> ec2-user@<your public IP address>`
    31  4. Once connected to the instance, type
    32      `sudo yum install -y docker ; sudo service docker start`
    33   to install and start Docker
    34  
    35  **If this is your first AWS instance, you may need to set up your Security Group to allow SSH.** By default all incoming ports to your new instance will be blocked by the AWS Security Group, so you might just get timeouts when you try to connect.
    36  
    37  Once you`ve got Docker installed, you're ready to try it out – head on
    38  over to the [User Guide](/userguide).
    39  
    40  ## Standard Ubuntu Installation
    41  
    42  If you want a more hands-on installation, then you can follow the
    43  [*Ubuntu*](/installation/ubuntulinux) instructions installing Docker
    44  on any EC2 instance running Ubuntu. Just follow Step 1 from the Amazon
    45  QuickStart above to pick an image (or use one of your
    46  own) and skip the step with the *User Data*. Then continue with the
    47  [*Ubuntu*](/installation/ubuntulinux) instructions.
    48  
    49  Continue with the [User Guide](/userguide/).