Editar

Compartilhar via


HcsExportLayer

Description

This function exports a container layer. This function is used by an application to create a representation of a layer in a transport format that can be copied to another host or uploaded to a container registry.

Syntax

HRESULT WINAPI
HcsExportLayer(
    _In_ PCWSTR layerPath,
    _In_ PCWSTR exportFolderPath,
    _In_ PCWSTR layerData,
    _In_ PCWSTR options
    );

Parameters

layerPath

Path of the layer to export.

exportFolderPath

Destination folder for the exported layer.

layerData

JSON document of layerData providing the locations of the antecedent layers that are used by the exported layer.

options

JSON document of ExportLayerOptions describing the layer to export.

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