Skip to content

Support running ARM images without variant information #2293

Description

@ernoaapa

Split out from #2133.

At the moment you cannot run ARM images what doesn't include variant information, because we check that variant matches with the current environment.

Based on this http://single-boards.com/armv6-vs-armv7/, it's safe to assume that ARMv7 is backward compatible to ARMv6:

ARMv7 is backward compatible with ARMv6, so binaries compiled for ARMv6 should also work on ARMv7

So I'm suggesting that in case of the image doesn't include variant information:

  • If current environment is ARMv7, run container because it supports v6 and v7
  • If current environment is ARMv6, fail because we cannot be sure does it work

Here's one example image without variant information for testing purpose docker.io/arm32v7/busybox:latest

Description

Steps to reproduce the issue:
1.
2.
3.

Describe the results you received:

Describe the results you expected:

Output of containerd --version:

(paste your output here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions