Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
kkarmakarMS opened this issue Apr 17, 2024 · 3 comments
Labels
question Further information is requested stale Inactive issues or pull requests wontfix This will not be worked on

Comments

@kkarmakarMS
Copy link

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.
@kkarmakarMS kkarmakarMS added bug Something isn't working triage New issues or PRs to be acknowledged by maintainers labels Apr 17, 2024
@qweeah qweeah added question Further information is requested wontfix This will not be worked on and removed bug Something isn't working triage New issues or PRs to be acknowledged by maintainers labels Apr 18, 2024
@qweeah
Copy link
Contributor

qweeah commented Apr 18, 2024

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.

Copy link

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.

@github-actions github-actions bot added the stale Inactive issues or pull requests label Jun 18, 2024
Copy link

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

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested stale Inactive issues or pull requests wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants