In this quick tutorial, I will show you how to install on instance and run your first . Docker AWS EC2 Docker container 1 — Setup EC2 instance I already did a on how to create an instance, so I won’t repeat it. There are few ways you’ll want to differ from the tutorial: tutorial EC2 We select the “ ” as . The exact versions may change with time. Amazon Linux AMI 2017.03.1 (HVM), SSH Volume Type AMI We configure the as below. This setting allows access to port ( ) from anywhere, and access also. security groups 80 HTTP SSH Go ahead and launch the instance, it will take couple of minutes: 2 — Install Docker Once your instance is ready to use, connect via to the server using the and the : SSH public DNS public key Once connected, use configuration manager to install , by typing the following commands: yum Docker sudo yum update -y sudo yum install -y docker Next, start the docker service: In order to user docker command without privileges ( ), we need to add to the : root sudo ec2-user docker group sudo usermod -aG docker ec2-user To verify that docker is correctly installed, just type: As you can see the latest version of docker has been installed ( ) v17.03.1-ce Congratulation ! you have now an instance with installed. EC2 Docker 3 — Deploy Docker Container It’s time to run your first container . We will create an container with this command: nginx If we run the list command “ ”, we can see that an has been created from the . docker ps nginx container nginx official image Finally, you visit your instance in your browser, you should see something like this below: public DNS name