public class DockerApi.ImageApi
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 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 error