Learning Windows Server Containers
上QQ阅读APP看书,第一时间看更新

Installing base OS images and verifying installation

The following steps will explain how to connect to an Azure VM and verify whether the machine is ready for Windows Server Container development:

  1. Once the VM is created and running, the status of the VM on the tile will be shown as Running:

We can connect to Azure VMs primarily in two ways using RDP and remote PowerShell. In this sample, we will be using RDP to connect to the Azure VM.

  1. Select the tile and click on the connect icon. This downloads a remote desktop client to your local machine, as shown in the following screenshot:

If you are using any browser other than IE 10 or Edge, please check for the .rdp file in the respective downloads folder.

  1. Double-click the .rdp file and click Connect to connect to the VM.
  2. Enter the username and password used while creating the VM to log in to the VM.
  3. Ignore the Security Certificate Warning and click on Yes.
  4. Ensure that the containers feature is installed by running the following command:
       Get-WindowsFeature -Name Containers

This should show Installed in the Install State of containers, as shown in the following screenshot:

  1. Ensure that the Docker client and engine is installed using the following commands on PowerShell CLI and verify the version:
       docker version

The preceding command gives the following output:

docker info provides the current state of the Docker daemon, such as the number of containers running, paused or stopped, the number of images, and so on, as shown in the following screenshot: