HcsInitializeLegacyWritableLayer
Description
This function initializes the writable layer for a container (e.g. the layer that captures the filesystem and registry changes caused by executing the container).
Syntax
HRESULT WINAPI
HcsInitializeLegacyWritableLayer(
_In_ PCWSTR writableLayerMountPath,
_In_ PCWSTR writableLayerFolderPath,
_In_ PCWSTR layerData,
_In_opt_ PCWSTR options
);
Parameters
writableLayerMountPath
Full path to the root directory of the writable layer.
writableLayerFolderPath
The legacy hive folder with the writable layer.
layerData
JSON document of layerData providing the locations of the antecedent layers that are used by teh writable layer.
options
Optional JSON document specifying the options for how to initialize the sandbox (e.g. which filesystem paths should be pre-expanded in the sandbox).
Return Values
The function returns HRESULT.
Requirements
Parameter | Description |
---|---|
Minimum supported client | Windows 10, version 1809 |
Minimum supported server | Windows Server 2019 |
Target Platform | Windows |
Header | ComputeStorage.h |
Library | ComputeStorage.lib |
Dll | ComputeStorage.dll |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈