Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show container/image opencontainer label information #1962

Open
jelly opened this issue Jan 13, 2025 · 2 comments
Open

Show container/image opencontainer label information #1962

jelly opened this issue Jan 13, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@jelly
Copy link
Member

jelly commented Jan 13, 2025

It turns out that there is an opencontainer data standard which OCI images have which exports some useful information I want to make available in cockpit-podman for myself as it is generally useful and awesome. The information is:

                    "org.opencontainers.image.created": "2024-12-17T16:42:08.279Z",
                    "org.opencontainers.image.description": "High performance self-hosted photo and video management solution.",
                    "org.opencontainers.image.licenses": "AGPL-3.0",
                    "org.opencontainers.image.revision": "fd34a914a6b2e6dcfbbe53afcf0112cabccc232b",
                    "org.opencontainers.image.source": "https://github.com/immich-app/immich",
                    "org.opencontainers.image.title": "immich",
                    "org.opencontainers.image.url": "https://github.com/immich-app/immich",
                    "org.opencontainers.image.version": "v1.123.0"

Most notably I want to be able to see a Description, Documentation link, and version. A hacky version of this is shown here:

image

And could be also show in the existing details tab:

image

Here the Description is super useful, showing what the image is before potentially deleting it. A link to its docs can be useful as it might be helpful to figure out how to run this container.

I also want to have the Version, and maybe links? Shown in the container overview. When using the latest tag for images it is useful to be able to check if a quadlet was auto-updated by showing the image version metadata.

If you want to know what images have Labels:

podman images --format '{{.Names}} {{.Labels}}'

For me most of my applications have Labels set:

[docker.io/koenkk/zigbee2mqtt:latest] map[org.opencontainers.image.authors:Koen Kanters org.opencontainers.image.description:Zigbee to MQTT bridge using Zigbee-herdsman org.opencontainers.image.documentation:https://www.zigbee2mqtt.io/ org.opencontainers.image.source:https://github.com/Koenkk/zigbee2mqtt org.opencontainers.image.title:zigbee2mqtt org.opencontainers.image.url:https://github.com/Koenkk/zigbee2mqtt]
[docker.io/jellyfin/jellyfin:latest] map[org.opencontainers.image.description:The Free Software Media System org.opencontainers.image.documentation:https://jellyfin.org/docs/ org.opencontainers.image.source:https://github.com/jellyfin/jellyfin-packaging org.opencontainers.image.title:Jellyfin org.opencontainers.image.url:https://jellyfin.org org.opencontainers.image.version:10.10.0]
@jelly jelly added the enhancement New feature or request label Jan 13, 2025
@jelly
Copy link
Member Author

jelly commented Jan 13, 2025

The labels are standarized here https://github.com/opencontainers/image-spec/blob/main/annotations.md#rules and just found out toolbox uses non-standard labels containers/toolbox#1046

@jelly
Copy link
Member Author

jelly commented Jan 13, 2025

Starting to think details makes tons more sense but we are a bit inconsistent with formatting in comparison with containers here:

image

image

So I would opt to consolidate the detail view of images into the same flex layout of containers. Leave out the akward metadata tab.

@garrett what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant