Containers Cmdlets

適用於: Windows 10, Windows PowerShell 5.0, Windows Server Technical Preview

Windows PowerShell® 是以工作為基礎的命令列介面和指令碼語言,專為系統管理所設計。資訊技術 (IT) 專業人員適用的這個參考主題提供有關運用 Windows PowerShell 指令程式撰寫指令碼及自動化工作的協助。

Containers Cmdlets

This topic displays help topics for the Windows Server® 技術預覽 Containers Cmdlets.

For more information about containers, see Windows Server Containers.

Name Description

Add-ContainerNetworkAdapter

Adds a virtual network adapter to a container.

Connect-ContainerNetworkAdapter

Connects a virtual network adapter to a virtual switch.

Disconnect-ContainerNetworkAdapter

Disconnects a virtual network adapter from a virtual switch.

Export-ContainerImage

Exports a container image to a file.

Get-Container

Gets information about containers.

Get-ContainerHost

Gets information about the host.

Get-ContainerImage

Gets local container images.

Get-ContainerNetworkAdapter

Gets the virtual network adapter of a container.

Import-ContainerImage

Imports a container image from a file.

Install-ContainerOSImage

Installs the base container operating system image.

Move-ContainerImageRepository

Moves the local container image repository.

New-Container

Creates a container image from an existing container.

New-ContainerImage

Creates a container image from an existing container image.

Remove-Container

Deletes a container.

Remove-ContainerImage

Removes a container image.

Remove-ContainerNetworkAdapter

Removes one or more virtual network adapters from a container.

Set-ContainerNetworkAdapter

Configures features of the virtual network adapter in a container.

Start-Container

Starts a container, which allows you to run commands and enter the container session.

Stop-Container

Stops a container, which allows you to use it to build a new container image.

Test-ContainerImage

Tests for problems with a container image.

Uninstall-ContainerOSImage

Uninstalls the container operating system image.

注意

To list all the cmdlets that are available, use the Get-Command –Module StorageQoS cmdlet.

如需任何 Cmdlet 的語法或相關詳細資訊,請使用 Get-Help <cmdlet name> Cmdlet,其中 <cmdlet name> 是您想要瞭解的 Cmdlet 名稱。如需詳細資訊,您可以執行下列任何一個指令程式:

Get-Help <cmdlet name> -Detailed
Get-Help <cmdlet name> -Examples
Get-Help <cmdlet name> -Full