Skip to content

Add an example for skopeo inspect --override-os #2793

Description

@jedahan

tl;dr - Is there a supported way to tell skopeo inspect to use a specific architecture and os? I don't see anything in skopeo inspect --help that points towards it.


I am not calling skopeo manually, but through terraform via incus provider. It runs skopeo --insecure-policy inspect docker://docker.io/linuxserver/jellyfin and errors out. Indeed running skopeo --insecure-policy inspect docker://docker.io/linuxserver/jellyfin manually gives the same error:

FATA[0000] Error parsing manifest for image: choosing image instance: no image found in image index for architecture "arm64", variant "v8", OS "darwin"

Thing is, my default_remote is set to an x86_64 machine, I am not sure if

  • the inspect command is not set to the remote machine (os: incus-os, architecture: x86_64), and if it can be set
    or
  • the inspect command should work on macOS at all, and if not, should it be hidden
    or
  • the incus provider is not setting the architecture to the remote correctly

So I am asking here and in incus to figure out where the source of the problem lies and how to solve it.

(separately, is there any way to have skopeo inspect on macOS just work out of the box instead of having to learn that these things need to be overridden?)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureA request for, or a PR adding, new functionalitystale-issue

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions