public interface SaveImagesCmd extends SyncDockerCmd<InputStream>
Modifier and Type | Interface and Description |
---|---|
static interface |
SaveImagesCmd.Exec |
static interface |
SaveImagesCmd.TaggedImage
Image name and tag.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
exec()
Its the responsibility of the caller to consume and/or close the
InputStream to prevent connection leaks. |
List<SaveImagesCmd.TaggedImage> |
getImages()
Gets the images that were added by
withImage(String, String) . |
SaveImagesCmd |
withImage(String name,
String tag)
Adds an image to the list of images to download.
|
SaveImagesCmd withImage(@Nonnull String name, @Nonnull String tag)
name
- image name (not null)tag
- tagList<SaveImagesCmd.TaggedImage> getImages()
withImage(String, String)
.InputStream exec() throws NotFoundException
InputStream
to prevent connection leaks.exec
in interface SyncDockerCmd<InputStream>
NotFoundException
- no such imageCopyright © 2021. All rights reserved.