Skip to content

Detect supported architectures for docker containers #18082

Open
@Elara6331

Description

@Elara6331

Proposal

I run a Nomad cluster with amd64, arm64, and riscv64 nodes. If I try to use a docker image that only supports amd64, nomad will sometimes schedule it on one of the non-amd64 nodes, which causes an exec format error. This can be fixed by manually adding a constraint for the CPU architecture. If possible, I'd like nomad to be able to automatically detect which platforms are supported by reading the manifest, and dynamically add constraints to the job based on that. The docker command allows you to inspect manifests using docker manifest inspect --verbose <image>.

Use-cases

This feature would simplify the process of running docker images on multi-architecture clusters

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Needs Roadmapping

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions