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...
- Install the
nuget
provider:Install-PackageProvider -Name nuget -Force
- Install the Docker provider:
$IHT1 = @{ Name = 'DockerMSFTProvider' Repository = 'PSGallery' Force = $True } Install-Module @IHT1
- Install the latest version of the Docker package. This also...