List Images Run in API Explorer

GET /images/json

Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image.

Query parameters

  • all boolean

    Show all images. Only images from a final layer (no children) are shown by default.

    Default value is false.

  • filters string

    A JSON encoded value of the filters (a map[string][]string) to process on the images list.

    Available filters:

    • before=(<image-name>[:<tag>], <image id> or <image@digest>)
    • dangling=true
    • label=key or label="key=value" of an image label
    • reference=(<image-name>[:<tag>])
    • since=(<image-name>[:<tag>], <image id> or <image@digest>)
    • until=<timestamp>
  • shared-size boolean

    Compute and show shared size as a SharedSize field on each image.

    Default value is false.

  • digests boolean

    Show digest information as a RepoDigests field on each image.

    Default value is false.

  • manifests boolean

    Include Manifests in the image summary.

    Default value is false.

Responses

  • 200 application/json

    Summary image data for the images matching the query

    Hide response attributes Show response attributes object
    • Id string Required

      ID is the content-addressable ID of an image.

      This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image).

      Note that this digest differs from the RepoDigests below, which holds digests of image manifests that reference the image.

    • ParentId string Required

      ID of the parent image.

      Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry.

    • RepoTags array[string] Required

      List of image names/tags in the local image cache that reference this image.

      Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is "untagged", in which case it can still be referenced by its ID.

    • RepoDigests array[string] Required

      List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image.

      These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated.

    • Created integer Required

      Date and time at which the image was created as a Unix timestamp (number of seconds since EPOCH).

    • Size integer(int64) Required

      Total size of the image including all layers it is composed of.

    • SharedSize integer(int64) Required

      Total size of image layers that are shared between this image and other images.

      This size is not calculated by default. -1 indicates that the value has not been set / calculated.

    • VirtualSize integer(int64)

      Total size of the image including all layers it is composed of.

      Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.

    • Labels object Required

      User-defined key/value metadata.

      Hide Labels attribute Show Labels attribute object
      • * string Additional properties
    • Containers integer Required

      Number of containers using this image. Includes both stopped and running containers.

      This size is not calculated by default, and depends on which API endpoint is used. -1 indicates that the value has not been set / calculated.

    • Manifests array[object]

      Manifests is a list of manifests available in this image. It provides a more detailed view of the platform-specific image manifests or other image-attached data like build attestations.

      WARNING: This is experimental and may change at any time without any backward compatibility.

      ImageManifestSummary represents a summary of an image manifest.

      Hide Manifests attributes Show Manifests attributes object
      • ID string Required

        ID is the content-addressable ID of an image and is the same as the digest of the image manifest.

      • Descriptor object Required

        Descriptor is an OCI descriptor of the image target. In case of a multi-platform image, this descriptor points to the OCI index or a manifest list.

        This field is only present if the daemon provides a multi-platform image store.

        WARNING: This is experimental and may change at any time without any backward compatibility.

        Hide Descriptor attributes Show Descriptor attributes object
        • mediaType string

          The media type of the object this schema refers to.

        • digest string

          The digest of the targeted content.

        • size integer(int64)

          The size in bytes of the blob.

        • urls array[string(uri)]

          List of URLs from which this object MAY be downloaded.

        • annotations object

          Arbitrary metadata relating to the targeted content.

          Hide annotations attribute Show annotations attribute object
          • * string Additional properties
        • data string

          Data is an embedding of the targeted content. This is encoded as a base64 string when marshalled to JSON (automatically, by encoding/json). If present, Data can be used directly to avoid fetching the targeted content.

        • platform object

          Describes the platform which the image in the manifest runs on, as defined in the OCI Image Index Specification.

          Hide platform attributes Show platform attributes object
          • architecture string

            The CPU architecture, for example amd64 or ppc64.

          • os string

            The operating system, for example linux or windows.

          • os.version string

            Optional field specifying the operating system version, for example on Windows 10.0.19041.1165.

          • os.features array[string]

            Optional field specifying an array of strings, each listing a required OS feature (for example on Windows win32k).

          • variant string

            Optional field specifying a variant of the CPU, for example v7 to specify ARMv7 when architecture is arm.

        • artifactType string

          ArtifactType is the IANA media type of this artifact.

      • Available boolean Required

        Indicates whether all the child content (image config, layers) is fully available locally.

      • Size object Required
        Hide Size attributes Show Size attributes object
        • Total integer(int64) Required

          Total is the total size (in bytes) of all the locally present data (both distributable and non-distributable) that's related to this manifest and its children. This equal to the sum of [Content] size AND all the sizes in the [Size] struct present in the Kind-specific data struct. For example, for an image kind (Kind == "image") this would include the size of the image content and unpacked image snapshots ([Size.Content] + [ImageData.Size.Unpacked]).

        • Content integer(int64) Required

          Content is the size (in bytes) of all the locally present content in the content store (e.g. image config, layers) referenced by this manifest and its children. This only includes blobs in the content store.

      • Kind string Required

        The kind of the manifest.

        kind description
        image Image manifest that can be used to start a container.
        attestation Attestation manifest produced by the Buildkit builder for a specific image manifest.

        Values are image, attestation, or unknown.

      • ImageData object

        The image data for the image manifest. This field is only populated when Kind is "image".

        Hide ImageData attributes Show ImageData attributes object
        • Platform object Required

          Describes the platform which the image in the manifest runs on, as defined in the OCI Image Index Specification.

          Hide Platform attributes Show Platform attributes object
          • architecture string

            The CPU architecture, for example amd64 or ppc64.

          • os string

            The operating system, for example linux or windows.

          • os.version string

            Optional field specifying the operating system version, for example on Windows 10.0.19041.1165.

          • os.features array[string]

            Optional field specifying an array of strings, each listing a required OS feature (for example on Windows win32k).

          • variant string

            Optional field specifying a variant of the CPU, for example v7 to specify ARMv7 when architecture is arm.

        • Containers array[string] Required

          The IDs of the containers that are using this image.

        • Size object Required
          Hide Size attribute Show Size attribute object
          • Unpacked integer(int64) Required

            Unpacked is the size (in bytes) of the locally unpacked (uncompressed) image content that's directly usable by the containers running this image. It's independent of the distributable content - e.g. the image might still have an unpacked data that's still used by some container even when the distributable/compressed content is already gone.

      • AttestationData object

        The image data for the attestation manifest. This field is only populated when Kind is "attestation".

        Hide AttestationData attribute Show AttestationData attribute object
        • For string Required

          The digest of the image manifest that this attestation is for.

    • Descriptor object

      Descriptor is an OCI descriptor of the image target. In case of a multi-platform image, this descriptor points to the OCI index or a manifest list.

      This field is only present if the daemon provides a multi-platform image store.

      WARNING: This is experimental and may change at any time without any backward compatibility.

      Hide Descriptor attributes Show Descriptor attributes object
      • mediaType string

        The media type of the object this schema refers to.

      • digest string

        The digest of the targeted content.

      • size integer(int64)

        The size in bytes of the blob.

      • urls array[string(uri)]

        List of URLs from which this object MAY be downloaded.

      • annotations object

        Arbitrary metadata relating to the targeted content.

        Hide annotations attribute Show annotations attribute object
        • * string Additional properties
      • data string

        Data is an embedding of the targeted content. This is encoded as a base64 string when marshalled to JSON (automatically, by encoding/json). If present, Data can be used directly to avoid fetching the targeted content.

      • platform object

        Describes the platform which the image in the manifest runs on, as defined in the OCI Image Index Specification.

        Hide platform attributes Show platform attributes object
        • architecture string

          The CPU architecture, for example amd64 or ppc64.

        • os string

          The operating system, for example linux or windows.

        • os.version string

          Optional field specifying the operating system version, for example on Windows 10.0.19041.1165.

        • os.features array[string]

          Optional field specifying an array of strings, each listing a required OS feature (for example on Windows win32k).

        • variant string

          Optional field specifying a variant of the CPU, for example v7 to specify ARMv7 when architecture is arm.

      • artifactType string

        ArtifactType is the IANA media type of this artifact.

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

GET /images/json
curl \
 --request GET 'http://api.example.com/v1.49/images/json'
Response examples (200)
[
  {
    "Id": "sha256:ec3f0931a6e6b6855d76b2d7b0be30e81860baccd891b2e243280bf1cd8ad710",
    "ParentId": "string",
    "RepoTags": [
      "example:1.0",
      "example:latest",
      "example:stable",
      "internal.registry.example.com:5000/example:1.0"
    ],
    "RepoDigests": [
      "example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb",
      "internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578"
    ],
    "Created": "1644009612",
    "Size": 172064416,
    "SharedSize": 1239828,
    "VirtualSize": 172064416,
    "Labels": {
      "com.example.some-label": "some-value",
      "com.example.some-other-label": "some-other-value"
    },
    "Containers": 2,
    "Manifests": [
      {
        "ID": "sha256:95869fbcf224d947ace8d61d0e931d49e31bb7fc67fffbbe9c3198c33aa8e93f",
        "Descriptor": {
          "mediaType": "application/vnd.oci.image.manifest.v1+json",
          "digest": "sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96",
          "size": 424,
          "urls": [
            "https://example.com"
          ],
          "annotations": {
            "org.opencontainers.image.url": "https://hub.docker.com/_/ubuntu",
            "org.opencontainers.image.source": "https://git.launchpad.net/cloud-images/+oci/ubuntu-base",
            "org.opencontainers.image.created": "2025-01-27T00:00:00Z",
            "org.opencontainers.image.version": "24.04",
            "org.opencontainers.image.revision": "9fabb4bad5138435b01857e2fe9363e2dc5f6a79",
            "org.opencontainers.image.base.name": "scratch",
            "org.opencontainers.image.base.digest": "sha256:0d0ef5c914d3ea700147da1bd050c59edb8bb12ca312f3800b29d7c8087eabd8",
            "com.docker.official-images.bashbrew.arch": "amd64"
          },
          "data": "string",
          "platform": {
            "architecture": "arm",
            "os": "windows",
            "os.version": "10.0.19041.1165",
            "os.features": [
              "win32k"
            ],
            "variant": "v7"
          },
          "artifactType": "string"
        },
        "Available": true,
        "Size": {
          "Total": 8213251,
          "Content": 3987495
        },
        "Kind": "image",
        "ImageData": {
          "Platform": {
            "architecture": "arm",
            "os": "windows",
            "os.version": "10.0.19041.1165",
            "os.features": [
              "win32k"
            ],
            "variant": "v7"
          },
          "Containers": [
            "ede54ee1fda366ab42f824e8a5ffd195155d853ceaec74a927f249ea270c7430",
            "abadbce344c096744d8d6071a90d474d28af8f1034b5ea9fb03c3f4bfc6d005e"
          ],
          "Size": {
            "Unpacked": 3987495
          }
        },
        "AttestationData": {
          "For": "sha256:95869fbcf224d947ace8d61d0e931d49e31bb7fc67fffbbe9c3198c33aa8e93f"
        }
      }
    ],
    "Descriptor": {
      "mediaType": "application/vnd.oci.image.manifest.v1+json",
      "digest": "sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96",
      "size": 424,
      "urls": [
        "https://example.com"
      ],
      "annotations": {
        "org.opencontainers.image.url": "https://hub.docker.com/_/ubuntu",
        "org.opencontainers.image.source": "https://git.launchpad.net/cloud-images/+oci/ubuntu-base",
        "org.opencontainers.image.created": "2025-01-27T00:00:00Z",
        "org.opencontainers.image.version": "24.04",
        "org.opencontainers.image.revision": "9fabb4bad5138435b01857e2fe9363e2dc5f6a79",
        "org.opencontainers.image.base.name": "scratch",
        "org.opencontainers.image.base.digest": "sha256:0d0ef5c914d3ea700147da1bd050c59edb8bb12ca312f3800b29d7c8087eabd8",
        "com.docker.official-images.bashbrew.arch": "amd64"
      },
      "data": "string",
      "platform": {
        "architecture": "arm",
        "os": "windows",
        "os.version": "10.0.19041.1165",
        "os.features": [
          "win32k"
        ],
        "variant": "v7"
      },
      "artifactType": "string"
    }
  }
]
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}