Connecting to the VM Using SSH and Git Bash on Mac OS X

Open the terminal and enter the following command:

$ ssh –i ./dockerhostkey dockeradmin@dockerhost-3udvgzn4.cloudapp.net –p 22

The SSH command is identical to the one used with Git Bash on Windows. Figure 2.11 shows the terminal window after successful connection to the Azure VM.

Image

FIGURE 2.11: MAC OS terminal session connected to the Azure VM

Before we move on and get to the Docker basics, let’s recap what we have done during the last couple of steps.

We used the Azure Portal to provision a virtual machine based on the “Docker on Unbuntu Server (preview)” ...

Get Microservices with Docker on Microsoft Azure™ (includes Content Update Program) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.