getArchive

suspend fun getArchive(id: String, path: String): Result<ByteReadChannel, ErrorResponse>

Returns a tar archive of the requested container path. Read the channel to completion or cancel it.

Return

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

Parameters

id

Container ID or name.

path

Path inside the container filesystem.