How To Connect To A Windows Container Using PowerShell

This article will show you how to connect to a Windows Container running On Windows Nano Server as the host Container.

This article follows the article I published Yesterday about how to Install And Configure Windows Nano Server As A Container Host.

When running Windows Containers on a Nano Server we manage our Containers using the Containers PowerShell Module and not Docker.

To get a list of all containers type:

Get-Container

Once I have the Container Name, To connect to It I type:

Enter-PSSession -ContainerId (Get-Container -name nano01).id -RunAsAdministrator

Once connected I can run and cmdlet Inside the container

Leave a Reply