export

suspend fun export(name: String, platform: String? = null): Result<ByteReadChannel, ErrorResponse>

Export an image

Get a tarball containing all images and metadata for a repository. Read the returned tar channel to completion or cancel it; use load to import an image archive.

Return

Operation response on success, or the Docker error response. Transport failures and cancellation can throw.

Parameters

name

Image reference or ID accepted by Docker.

platform

Optional Docker platform selector, for example linux/amd64.