Configuring a container host
The first step in containerization is to configure a container host. The container host is a Windows System (virtual or physical). You have installed Windows Server 2022 host with just Powershell loaded.
Configuring the host requires you to add Windows features and download/install the Docker components you need to manage containers.
You can also run containers on Windows 11, and this recipe would mostly work on that platform but would need some modifications. These changes and containers on Windows 11 are outside the scope of this chapter
Getting ready
You run this recipe on CH1
after you have installed PowerShell 7 (and VS code)
How to do it...
- Installing the Docker provider module
$InstallHT1 = @{
Name = 'DockerMSFTProvider'
Repository = 'PSGallery'
Force = $True
}
Install-Module @InstallHT1
- Installing the latest version of the docker package.
$InstallHT2 = @{
Name = 'Docker'
ProviderName...