Author Posts

January 9, 2017 at 8:47 pm

Hi, Can you please tell me whet is the command or how I can add containers powershell commands?
I have setup Docker on win 10 correctly and it works fine, when issue
Get-Command -Module Containers
I get only
CommandType Name Version Source
———– —- ——- ——
Cmdlet Get-ContainerNetwork 1.0.0.0 Containers
Cmdlet New-ContainerNetwork 1.0.0.0 Containers
Cmdlet Remove-ContainerNetwork 1.0.0.0 Containers

I watched a couple of videos and can see a lot more commands to manage containers
Thanks

January 10, 2017 at 7:38 pm

There are no PowerShell cmdlets for working with Containers out of the box.

Microsoft documentation is here – https://docs.microsoft.com/en-gb/virtualization/windowscontainers/about/

Either use Docker which seems to be Microsoft's preferred answer or use the module from here – https://github.com/Microsoft/Docker-PowerShell which hasn't been updated since October 2016 but even then you'll need to install Docker