Uploaded image for project: 'OpenShift Runtimes'
  1. OpenShift Runtimes
  2. RUN-2076

[containers/podman] Include manifest list or boolean attribute in libpod image list

XMLWordPrintable

    • 5
    • False
    • None
    • False
    • sst_container_tools
    • RUN 251, RUN 252

      [2210795920] Upstream Reporter: Florent BENOIT
      Upstream issue status: Open
      Upstream description:

      Feature request description

      From Podman Desktop POV, we're displaying images.

      We would like to display as well multi-arch images. These images are part of the libpod/images/json enpoint

      But then, currently there is no way to know if the image being listed is a true image or part of a manifest.

      From Podman Desktop, we need to know when image is a multi-arch to let the people know the arch/os of the manifest.

      Suggest potential solution

      include either manifests field corresponding to something like manifest inspect result

      {
          "schemaVersion": 2,
          "mediaType": "application/vnd.oci.image.index.v1+json",
          "manifests": [
              {
                  "mediaType": "application/vnd.oci.image.manifest.v1+json",
                  "size": 1930,
                  "digest": "sha256:94d0d9c033b913aba7b23976bcedfbda80cd6fbfa5abf605484f1eabf225a03a",
                  "platform": {
                      "architecture": "amd64",
                      "os": "linux"
                  }
              },
              {
                  "mediaType": "application/vnd.oci.image.manifest.v1+json",
                  "size": 1933,
                  "digest": "sha256:e351b67dc93670018f56c891dc0e49d8bd6b99813e567170310446f89a61ca8b",
                  "platform": {
                      "architecture": "arm64",
                      "os": "linux"
                  }
              }
          ]
      }
      

      in that case, it means that Podman Desktop with one query to the list endpoint is able to grab all arch/os of image manifests

      other option

      include a boolean field like isManifest: true or Manifest:true

      then we know it's a manifest and we'll need to query for each matching manifest/image a call to the Manifest API endpoint to know more about images

      We're also fine if for example we need to include a parameter like ?showMoreThings on the endpoint

      Have you considered any alternatives?

      A clear and concise description of any alternative solutions or features you've considered.

      Additional context

      Add any other context or screenshots about the feature request here.


      Upstream URL: https://github.com/containers/podman/issues/22184

            bbaude@redhat.com Brent Baude
            upstream-sync Upstream Sync
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: