Deploying containers remotely
In the previous section, we learned to connect to a remote Azure machine and configured Docker to listen on a remote port. In this section, we will learn to deploy the Music Store application remotely and configure load balancing using a software based load balancer called NGINX by downloading the image from the Docker Hub.
Before we proceed, a musicstore
Windows Container image needs to be published to the Docker Hub. The source code for this updated image is available under chapter5/musicstore
. This sample contains a special feature which will be used to test the load balancer configuration. Open the solution using Visual Studio and build and publish to the Docker Hub. (Refer to Chapter 4, Developing Container Applications, on instructions to build and publish to the Docker Hub).
The following set of steps explain the process of deploying Music Store on a remote Docker host:
- Create a new remote PowerShell session with remote Docker host by running the following...