Introduction
Containers and container technology have been around on the Linux platform for some time and can also be run on Windows (both Windows 10/11 and Windows Server 2022. Containers can assist in deploying applications. The open-source Docker initiative popularized containers. Windows Server 2022, Windows Server supports both Docker and Docker containerization integrated with Hyper-V.
With containers in Windows Server 2022, you perform most administration tasks not by using PowerShell cmdlets but by using a command-line tool called docker.exe
. For those used to PowerShell's object-oriented and task-focused approach, you may find this application hard to use. I daresay you are not alone. The docker.exe
application works in PowerShell, and you can use PowerShell to wrap the command. As ever with command line tools, you can wrap the command line application with a PowerShell function to get the benefits of object orientation.
To use containers with Windows Server 2019, you must...