Modifier and Type | Method and Description |
---|---|
void |
exportLayers(ImageReference reference,
IOBiConsumer<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,
String registryAuth)
Pull an image from a registry.
|
void |
push(ImageReference reference,
UpdateListener<PushImageUpdateEvent> listener,
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 IOException
reference
- the image reference to pulllistener
- a pull listener to receive update eventspulled image
instanceIOException
- on IO errorpublic Image pull(ImageReference reference, UpdateListener<PullImageUpdateEvent> listener, String registryAuth) throws IOException
reference
- the image reference to pulllistener
- a pull listener to receive update eventsregistryAuth
- registry authentication credentialspulled image
instanceIOException
- on IO errorpublic void push(ImageReference reference, UpdateListener<PushImageUpdateEvent> listener, String registryAuth) throws IOException
reference
- the image reference to pushlistener
- a push listener to receive update eventsregistryAuth
- registry authentication credentialsIOException
- on IO errorpublic void load(ImageArchive archive, UpdateListener<LoadImageUpdateEvent> listener) throws IOException
ImageArchive
into Docker.archive
- the archive to loadlistener
- a pull listener to receive update eventsIOException
- on IO errorpublic void exportLayers(ImageReference reference, IOBiConsumer<String,TarArchive> exports) throws IOException
reference
- the reference to exportexports
- a consumer to receive the layers (contents can only be accessed
during the callback)IOException
- on IO errorpublic void remove(ImageReference reference, boolean force) throws IOException
reference
- the reference the removeforce
- if removal should be forcedIOException
- on IO errorpublic Image inspect(ImageReference reference) throws IOException
reference
- the image referenceIOException
- on IO errorpublic void tag(ImageReference sourceReference, ImageReference targetReference) throws IOException
IOException