Amazon Lightsail is a new service on AWS which appears to be targeted at hosts like Digital Ocean and Linode. There’s a pretty neat “Launch Script” feature! Here’s a quick guide to automated Docker installs.
Login to AWS, jump to Lightsail, and select “Base OS” and the option for “Ubuntu 16.04”.
For this example, we’re going to use the Docker PHP Image. You’ll probably want to modify the last two lines of this script to pull your own Docker image. In the “Launch Script” box, enter this code:
You can login to DockerHub using:
sudo docker login --username=your_username --password=your_password123!
That’s it and that’s all!