Skip to content

UX: improve messages / warnings /errors to include platform (os/arch/xx) #41838

@thaJeztah

Description

@thaJeztah

related to docker/for-linux#1170 (comment)
also related (should be done in conjunction with these changes); #42283

We should improve some message to include the (expected) platform, for example:

Unable to find image 'pihole/pihole:v5.2.1' locally

This could include the desired os/architecture, e.g.:

Unable to find image 'pihole/pihole:v5.2.1' for platform linux/arm64

The pull output could also include a line with the platform/architecture that was pulled;

v5.2.1: Pulling from pihole/pihole
aceecb32d1c3: Pull complete
...
Digest: sha256:7888e89f4d435673c75896c546fefe3177379c99c8766c89be25a905f8def533
Status: Downloaded newer image for pihole/pihole:v5.2.1

e.g.;

v5.2.1: Pulling from pihole/pihole (platform: linux/arm64)
aceecb32d1c3: Pull complete
...
Digest: sha256:7888e89f4d435673c75896c546fefe3177379c99c8766c89be25a905f8def533
Platform: linux/arm64
Status: Downloaded newer image for pihole/pihole:v5.2.1

Or splitting the fields (not sure if "os-features" and "variant" are part of the OCI spec now)

Digest: sha256:7888e89f4d435673c75896c546fefe3177379c99c8766c89be25a905f8def533
Platform: os: linux, architecture: arm64, variant: xxx, os-features: xxx
Status: Downloaded newer image for pihole/pihole:v5.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/distributionImage Distributionarea/imagesImage Distributionarea/uxcontainerd-integrationIssues and PRs related to containerd integrationkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Projects

    Status

    To do

    Status

    Incomplete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions