Docker for Azure
Microsoft Azure is a cloud computing platform created by Microsoft for building, testing, deploying, and managing applications. It is currently the second most popular cloud platform behind Amazon. In this recipe, we will discuss how to install Docker for Azure, a product from Docker that makes it easy to get a Docker native stack up and running on Azure.
Getting ready
Before we can get started, there are a few things you will need:
- Access to a Microsoft Azure account with admin privileges
- An SSH key, which you will use when accessing the Docker for Azure Manager nodes
- An Azure Service Principal (SP), which is used by Docker for Azure to authenticate with the Azure APIs
Docker has made it easy to create a Service Principal by using a Docker image they provide. Follow these steps to create a Service Principal. The first thing you will do is run the Docker image, passing in a few parameters:
$ docker container run -ti docker4x/create-sp-azure [sp-name] [rg-name rg-region]
sp-name...