Images

class Images(dockerClient: DockerClient)

Constructors

Link copied to clipboard
constructor(dockerClient: DockerClient)

Functions

Link copied to clipboard
suspend fun create(fromImage: String, fromSrc: String? = null, repo: String? = null, tag: String? = null, message: String? = null, changes: List<String>? = null, platform: String? = null): Result<Unit, ErrorResponse>

Create an image

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

Export an image

Link copied to clipboard
suspend fun exportAll(names: List<String>? = null, platform: String? = null): Result<ByteReadChannel, ErrorResponse>

Export several images

Link copied to clipboard

Get the history of an image

Link copied to clipboard
suspend fun inspect(name: String, manifests: Boolean = false): Result<ImageInspect, ErrorResponse>

Inspect an image

Link copied to clipboard
suspend fun list(all: Boolean = false, filters: Map<String, List<String>>? = null, sharedSize: Boolean = false, digests: Boolean = false, manifests: Boolean = false): Result<List<ImageSummary>, ErrorResponse>

List Images

Link copied to clipboard
suspend fun load(quiet: Boolean = false, body: ByteReadChannel): Result<Unit, ErrorResponse>

Import images

Link copied to clipboard
suspend fun prune(filters: Map<String, List<String>>? = null): Result<ImagePruneResponse, ErrorResponse>

Delete unused images

Link copied to clipboard
suspend fun push(name: String, tag: String? = null, platform: String? = null): Result<Unit, ErrorResponse>

Push an image

Link copied to clipboard
suspend fun remove(name: String, force: Boolean = false, noPrune: Boolean = false): Result<List<ImageDeleteResponseItem>, ErrorResponse>

Remove an image

Link copied to clipboard
suspend fun search(term: String, limit: Int? = null, filters: Map<String, List<String>>? = null): Result<List<ImageSearchResponseItem>, ErrorResponse>

Search images

Link copied to clipboard
suspend fun tag(name: String, repo: String? = null, tag: String? = null): Result<Unit, ErrorResponse>

Tag an image