Book Image

Docker Bootcamp

By : Russ McKendrick, Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh
Book Image

Docker Bootcamp

By: Russ McKendrick, Pethuru Raj, Jeeva S. Chelladhurai, Vinod Singh

Overview of this book

<p>Docker allows you to create a robust and resilient environment to generate portable, composable, scalable, and stable application containers.</p> <p>The book starts by installing the core Docker Engine on MacOS, Windows 10 and Linux desktops. We will then define multi-container applications and understand the advantages of using containers locally. Once this is done, we will deploy containers on a single Docker host which is publicly accessible. Furthermore, we will learn how to deploy and configure a Docker Swarm cluster and explore networking and storage third-party plugins to extend the core Docker functionality. Towards the end, the book will demonstrate how to monitor and troubleshoot day-to-day problems in addition to various real world examples of container deployments.</p>
Table of Contents (15 chapters)

Docker for Azure


Docker for Azure needs a little more work up-front before we can deploy. Luckily, Docker have made this as simple as possible by providing the Azure command line interface as a container.

We need to create a service profile and resource group for our deployment to use, to do this simply run the following command:

docker run -ti docker4x/create-sp-azure bootcamp-sp bootcamp-resource westus

This will download the Azure CLI. The three variables we are passing the command are as follows:

  • The name of the service profile

  • The name of the resource group

  • Which region we would like to launch our cluster in

After a few seconds, you should receive a URL and an authentication code:

Open https://aka.ms/devicelogin/ in your browser and enter the code you were given, which in my case was DQQXPYV7G:

As you can see from the screen above, the application is identifying itself as Microsoft Azure Cross-platform Command Line Interface so we know that the request is right; clicking on Continue will ask...