Share via


Install-ContainerOSImage

Install-ContainerOSImage

Installs the base container operating system image.

語法

Parameter Set: Default
Install-ContainerOSImage [-WimPath] <String> [-Force] [ <CommonParameters>]

詳細描述

The Install-ConstainerOSImage cmdlet installs the base container operating system image, which allows you to build containers.

參數

-Force

強制執行命令,不要求使用者確認。

別名

none

必要項?

false

位置?

named

預設值

none

接受管線輸入?

false

接受萬用字元?

false

-WimPath<String>

Specifies the path to the Windows image (.wim) file.

別名

none

必要項?

true

位置?

1

預設值

none

接受管線輸入?

false

接受萬用字元?

false

<CommonParameters>

這個指令程式支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

輸入

輸入類型是可透過管道傳送至指令程式的物件類型。

輸出

輸出類型是指令程式所發出的物件類型。

範例

Example 1: Install a container operating system image from a file

This command installs the container operating system image from the .wim file C:\Images\CBaseOs_ServerDataCenterCore_en-us.wim.

PS C:\> Install-ContainerOSImage -WimPath "C:\Images\CBaseOs_ServerDataCenterCore_en-us.wim"                        

相關主題

Uninstall-ContainerOSImage