In the next chapters, we will show how to create the Docker instance remotely, using the Docker Machine. This time we will just install Docker and run the sample image on Amazon EC2 cloud manually. If you have a running Linux on the EC2 Cloud, the Docker installation procedure is almost identical as for any Linux system. Let's begin with creating the first Linux instance.
To use the EC2 cloud, you will need to create an account. It's free for basic purposes, so go to http://aws.amazon.com and fill out the registration form. Also, the basic t2.micro
instance is free for you to use and is enough for testing the Docker installation. After creating the account, log into AWS Console and select EC2 from the list of available services:
Next, launch the instance using the Launch Instance button:
The next page asks what operating system should be available on your new EC2 instance. For our purposes, Amazon Linux will be fine. It's first on the list, select it:
Next...