eBooks/eGuides

Containers for Dummies

Issue link: https://insights.oneneck.com/i/1293607

Contents of this Issue

Navigation

Page 43 of 76

40 Containers For Dummies, HPE and Docker Special Edition These materials are © 2017 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited. Done yet? Good! Now, let's move on to the next step. Again, I'll be on my trusty Mac, so you'll see Mac screen shots and output and I'll be using the built-in Terminal application to issue Docker commands. If you're a Windows diehard, you can choose to use PowerShell, but you don't have to. The Docker CLI is also directly available on that platform and using it has the added benefit that you'll become an instant cross platform Docker management guru! My first test is to make sure Docker is really running, so I'm issu- ing the command docker version, which results in the output shown in Figure 5-1. Now, are you ready for the absolutely arduous process of down- loading an image, installing it, and then executing it and hoping it works? At your command line, type docker run hello-world and press Return. Yep, that's it. Figure 5-2 shows you what just happened. You didn't actually have to go anywhere to do anything. After you issued the Run command, Docker looked for a local image named hello-world. Not finding it, Docker pulled the hello-world image from the Docker Store. It then created a local container from that image and executed it. FIGURE 5-1: The Docker installation was successful.

Articles in this issue

Archives of this issue

view archives of eBooks/eGuides - Containers for Dummies