Skip to content

Image pushed to ACR is not letting us create containers saying "doesnt support specified OS Windows" #1353

Closed

Description

@kkarmakarMS

What happened in your environment?

We pushed an image to ACR using the oras client and the ACR push was successful. When we tried to create an ACI container out of it, we get an error message:
{"error":{"code":"ImageOsTypeNotMatchContainerGroup","message":"The container image 'mcr.microsoft.com/automationsandbox/powershell:5.1-1.0.02662.922' doesn't support specified OS 'Windows' for container group ''."}}

What did you expect to happen?

Expecting that the ACI container group would successfully be created. Same image artifact pushed to MCR using crane client worked:
mcr.microsoft.com/automationsandbox/powershell:5.1-1.0.02662.921

How can we reproduce it?

Try creating an ACI container group for this image pushed to MCR:
mcr.microsoft.com/automationsandbox/powershell:5.1-1.0.02662.922
During the container creation API call to ACI, ensure to mention "OsType" property as "Windows"

What is the version of your ORAS CLI?

https://github.com/oras-project/oras/releases/download/v1.1.0/oras_1.1.0_linux_amd64.tar.gz

What is your OS environment?

A container created from this image performs the push: mcr.microsoft.com/onebranch/cbl-mariner/build:2.0

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    triage
    on Apr 17, 2024
  2. added
    question
    wontfix
    and removed
    bug
    triage
    on Apr 18, 2024
  3. qweeah commented on Apr 18, 2024

    @qweeah
    Contributor

    Had a discussion offline with @kkarmakarMS. To push an image from a local OCI image layout tarball to a registry, oras cp should be used instead of oras push.

  4. github-actions commented on Jun 18, 2024

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  5. added
    stale
    on Jun 18, 2024
  6. github-actions commented on Jul 18, 2024

    @github-actions

    This issue was closed because it has been stalled for 30 days with no activity.

  7. added
    enhancement
    and removed
    question
    wontfix
    stale
    on Jun 20, 2025
  8. added this to the v1.3.0-beta.4 milestone on Jun 20, 2025
  9. linked a pull request that will close this issuedocs: backup and restore specification #1610on Jun 20, 2025
  10. added
    duplicate
    on Jul 3, 2025
  11. Wwwsylvia commented on Jul 8, 2025

    @Wwwsylvia
    Member

    Reopening this issue as the implementation is not yet complete.

  12. TerryHowe commented on Jul 8, 2025

    @TerryHowe
    Member

    Reopening this issue as the implementation is not yet complete.

    The link reference must be buried in a resolved comment

  13. Wwwsylvia commented on Aug 5, 2025

    @Wwwsylvia
    Member

    Closed via #1790 and #1792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions