Skip to content

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

@kkarmakarMS

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions