public class DockerApi.ImageApi
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
exportLayers(ImageReference reference,
IOBiConsumer<java.lang.String,TarArchive> exports)
Export the layers of an image.
|
Image |
inspect(ImageReference reference)
Inspect an image.
|
void |
load(ImageArchive archive,
UpdateListener<LoadImageUpdateEvent> listener)
Load an
ImageArchive into Docker. |
Image |
pull(ImageReference reference,
UpdateListener<PullImageUpdateEvent> listener)
Pull an image from a registry.
|
Image |
pull(ImageReference reference,
UpdateListener<PullImageUpdateEvent> listener,
java.lang.String registryAuth)
Pull an image from a registry.
|
void |
push(ImageReference reference,
UpdateListener<PushImageUpdateEvent> listener,
java.lang.String registryAuth)
Push an image to a registry.
|
void |
remove(ImageReference reference,
boolean force)
Remove a specific image.
|
void |
tag(ImageReference sourceReference,
ImageReference targetReference) |
public Image pull(ImageReference reference, UpdateListener<PullImageUpdateEvent> listener) throws java.io.IOException
reference - the image reference to pulllistener - a pull listener to receive update eventspulled image instancejava.io.IOException - on IO errorpublic Image pull(ImageReference reference, UpdateListener<PullImageUpdateEvent> listener, java.lang.String registryAuth) throws java.io.IOException
reference - the image reference to pulllistener - a pull listener to receive update eventsregistryAuth - registry authentication credentialspulled image instancejava.io.IOException - on IO errorpublic void push(ImageReference reference, UpdateListener<PushImageUpdateEvent> listener, java.lang.String registryAuth) throws java.io.IOException
reference - the image reference to pushlistener - a push listener to receive update eventsregistryAuth - registry authentication credentialsjava.io.IOException - on IO errorpublic void load(ImageArchive archive, UpdateListener<LoadImageUpdateEvent> listener) throws java.io.IOException
ImageArchive into Docker.archive - the archive to loadlistener - a pull listener to receive update eventsjava.io.IOException - on IO errorpublic void exportLayers(ImageReference reference, IOBiConsumer<java.lang.String,TarArchive> exports) throws java.io.IOException
reference - the reference to exportexports - a consumer to receive the layers (contents can only be accessed
during the callback)java.io.IOException - on IO errorpublic void remove(ImageReference reference, boolean force) throws java.io.IOException
reference - the reference the removeforce - if removal should be forcedjava.io.IOException - on IO errorpublic Image inspect(ImageReference reference) throws java.io.IOException
reference - the image referencejava.io.IOException - on IO errorpublic void tag(ImageReference sourceReference, ImageReference targetReference) throws java.io.IOException
java.io.IOException