Configuring a container host

The first step in containerization is to configure a container host. The container host is a machine (virtual or physical) running Windows Server 2019 with the necessary container-related services and prerequisites installed and running. You can also run containers on Windows 10, but this is outside the scope of this chapter.

In this recipe, you install the components necessary for containers, including loading the Docker components.

Getting ready

This recipe uses a new Windows Server 2019 system, named CH1. At the start of this chapter and this recipe, CH1 contains only the base-installed Windows features and has not been used for other recipes in this book.

How to do it...

  1. Install the nuget provider:
    Install-PackageProvider ...

Get Windows Server 2019 Automation with PowerShell Cookbook - Third Edition 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.