Skip to content

auto-determined platform for MacOS should probably change #262

@otheus

Description

@otheus

I don't know of any case in which Docker or other OCI platform on the MacOS uses "darwin/arm64" for images. They are almost always "linux/" due to the fact that these tools generally create a VM that runs some basic Linux instance.

Thus, the preset for MacOS should most likely be "linux/arm64". Yes, after 1 hour, I figured out how to fix that problem with the command-option, but having to do so begs the question as to why that value is determined the way it is.

INFO[0000] Target platforms: [darwin/arm64/v8]          
INFO[0000] Loading image "docker.io/library/dag-odoo:18.0_ub2404_05" from "docker" 
Error response from daemon: no suitable export target found for platform darwin/arm64/v8

With inspect, locally built images have Os value of linux, not darwin.
Also, v8 appears to be superfluous but is accepted.

PS: Thank you so much for this tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    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