java.lang.Object
org.springframework.boot.buildpack.platform.json.MappedObject
org.springframework.boot.buildpack.platform.docker.type.Image

public class Image extends MappedObject
Image details as returned from Docker inspect.
Since:
2.3.0
Author:
Phillip Webb
  • Method Details

    • getDigests

      public List<String> getDigests()
      Return the digests of the image.
      Returns:
      the image digests
    • getConfig

      public ImageConfig getConfig()
      Return image config information.
      Returns:
      the image config
    • getLayers

      public List<LayerId> getLayers()
      Return the layer IDs contained in the image.
      Returns:
      the layer IDs.
    • getOs

      public String getOs()
      Return the OS of the image.
      Returns:
      the image OS
    • of

      public static Image of(InputStream content) throws IOException
      Create a new Image instance from the specified JSON content.
      Parameters:
      content - the JSON content
      Returns:
      a new Image instance
      Throws:
      IOException - on IO error