Skip to main content

Type Alias: ContainerExportOpts

ContainerExportOpts: object

Type declaration

expand?

optional expand: boolean

Replace "${VAR}" or "$VAR" in the value of path according to the current environment variables defined in the container (e.g. "/$VAR/foo").

forcedCompression?

optional forcedCompression: ImageLayerCompression

Force each layer of the exported image to use the specified compression algorithm.

If this is unset, then if a layer already has a compressed blob in the engine's cache, that will be used (this can result in a mix of compression algorithms for different layers). If this is unset and a layer has no compressed blob in the engine's cache, then it will be compressed using Gzip.

mediaTypes?

optional mediaTypes: ImageMediaTypes

Use the specified media types for the exported image's layers.

Defaults to OCI, which is largely compatible with most recent container runtimes, but Docker may be needed for older runtimes without OCI support.

platformVariants?

optional platformVariants: Container[]

Identifiers for other platform specific containers.

Used for multi-platform image.