java.lang.Object
cn.taketoday.buildpack.platform.json.MappedObject
cn.taketoday.buildpack.platform.docker.type.Image

public class Image extends MappedObject
Image details as returned from Docker inspect.
从以下版本开始:
4.0
作者:
Phillip Webb
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • getDigests

      private List<String> getDigests(JsonNode node)
    • extractLayers

      private List<LayerId> extractLayers(String[] layers)
    • getDigests

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

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

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

      public String getOs()
      Return the OS of the image.
      返回:
      the image OS
    • getCreated

      public String getCreated()
      Return the created date of the image.
      返回:
      the image created date
    • of

      public static Image of(InputStream content) throws IOException
      Create a new Image instance from the specified JSON content.
      参数:
      content - the JSON content
      返回:
      a new Image instance
      抛出:
      IOException - on IO error