Book Image

Developing with Docker

By : Jaroslaw Krochmalski, Jarosław Krochmalski
Book Image

Developing with Docker

By: Jaroslaw Krochmalski, Jarosław Krochmalski

Overview of this book

This fast-paced practical guide will get you up and running with Docker. Using Docker, you will be able to build, ship, and run many distributed applications in real time. You will start with quickly installing Docker and start working with images and containers. We will present different types of containers and their applications, and show you how to find and build images. You will learn how you can contribute to the image repository by publishing different images. This will familiarize you with the image building process and you will be able to successfully run your programs within containers. By finishing this book, you will be well equipped in deploying your applications using Docker and will have a clear understanding of concepts, techniques, and practical methods to get it running in production systems.
Table of Contents (16 chapters)
Developing with Docker
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Installing on the cloud — AWS


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...