page_title: Installation on Amazon EC2 page_description: Installation instructions for Docker on Amazon EC2. page_keywords: amazon ec2, virtualization, cloud, docker, documentation, installation
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.
You'll need an AWS account first, of course.
The latest Amazon Linux AMI, 2014.09.1, is Docker ready. Docker packages can be installed from Amazon's provided Software Repository.
t2.micro
instance (more info on
pricing).Next: Configure Instance Details
button at the bottom right.ssh -i <path to your private key> ec2-user@<your public IP address>
sudo yum install -y docker ; sudo service docker start
to install and start DockerIf 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.
Once you`ve got Docker installed, you're ready to try it out – head on over to the User Guide.
If you want a more hands-on installation, then you can follow the Ubuntu instructions installing Docker on any EC2 instance running Ubuntu. Just follow Step 1 from the Amazon QuickStart above to pick an image (or use one of your own) and skip the step with the User Data. Then continue with the Ubuntu instructions.
Continue with the User Guide.