-
Notifications
You must be signed in to change notification settings - Fork 39
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
Container Publish: OCI base image without optional root mediaType fails #567
Comments
Thanks for the report. @Tobias-08 without a media type, how should we interpret the various properties of the manifest? When an image like this is pushed to Docker hub or other container registries, what defaults do they have? |
@baronfel Thanks for your quick response. I'm not an expert on OCI manifests but shouldn't Or do you mean that you need the root |
Yeah, your last point is what I was getting at. At this point I agree with you that per spec the manifest is valid, and I think that we need to see what other tools do in the absence of this (seemingly critical) information. Do they assume a certain media type? Do they probe for properties that only exist in one media type or another? Etc. |
@Tobias-08 is there any chance you could provide a sample base image or link to one for testing purposes? |
I think that Docker at least defaults a manifests' mediaType to |
@baronfel Unfortunately I am not allowed to share our images and I did not find a comparable OCI dotnet image. I would have said to go with the "probe for properties that only exist in one media type"-approach. That said I'm going to check with our image guys if the root |
Describe the bug
We are using custom aspnet-runtime-images with OCI manifest. When using
dotnet publish -p:PublishProfile=DefaultContainer
with csproj'sContainerBaseImage
pointing to our custom image, publish fails (exception below).Our OCI manifest does not have a
mediaType
property in root which is valid according to the spec but seems to cause dotnet to fail:To Reproduce
ContainerBaseImage
dotnet publish -p:PublishProfile=DefaultContainer
Exceptions (if any)
The text was updated successfully, but these errors were encountered: