public class Image extends MappedObject
Docker inspect
.MappedObject.ContentReader<C>
Modifier and Type | Method and Description |
---|---|
ImageConfig |
getConfig()
Return image config information.
|
List<String> |
getDigests()
Return the digests of the image.
|
List<LayerId> |
getLayers()
Return the layer IDs contained in the image.
|
String |
getOs()
Return the OS of the image.
|
static Image |
of(InputStream content)
Create a new
Image instance from the specified JSON content. |
public List<String> getDigests()
public ImageConfig getConfig()
public List<LayerId> getLayers()
public String getOs()
public static Image of(InputStream content) throws IOException
Image
instance from the specified JSON content.content
- the JSON contentImage
instanceIOException
- on IO error