-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unrecognized field "urls" when attempting to use openjdk:11.0-nanoserver #2215
Comments
Thanks for reporting this. The OCI spec lists |
It's an easy fix to ignore the optional properties. However, I've noticed an issue in practice with the following images.
For example, the Docker Hub manifest for
Docker Hub doesn't seem to actually host the blob The OCI spec says
The field is "optional" and the blob "MAY be downloaded", so For now, I'll just apply the easy fix to ignore the |
Very weird. An hour ago, Docker Hub returned 404 for the layers with |
#2217 is merged and will prevent Jib from crashing when there is a Jib could do further and try to pull from one of the Does |
|
Thanks for the update. Unfortunately, this is quite involved to support in Jib. Note to self:
|
@phxnsharp I'm curious. Do you really intend to run a Windows image on prod (e.g., deploy it to some Windows server-based cloud platform)? |
Yes, but mostly in-house, not in the cloud. |
@phxnsharp um, actually, even if pulling foreign layers were supported, I'm afraid it's very possible that Windows images built by Jib could be broken anyway. Building Windows images has never been supported. We explicitly use |
Understood. We are currently just exploring options and are not in production yet. FWIW, A simple Dockerfile like this works for me using Docker's CLI:
It may very well be we will run into other pathing issues as we make this more complex. But for now, it is working. Thanks so much for your support! |
There's a way to test building a Windows image with Jib. After you do I'm personally curious to see if Jib-built Windows images will work. If so, it's an incentive for us to fix this issue. Even if it doesn't work, it'd be very useful for us to know if we should do a lot of work to support building Windows images in the future. |
Unfortunately it fails to build, whether I use the full sha256 string or the image ID. The error I get appears to be an unrelated issue:
|
Hello, I'm here just to express that I would like also use I'm using Gradle and we are also getting the 404 error:
Or this error if trying to use my own base image:
Maybe it's related to #1568 (handles foreign/non-distributable layers). And I'm also getting the same
Feel free to contact me if I could help with this. |
Hi @augi, Yeah, #2215 is now a duplicate of #1568. Fixing #1568 will probably resolve your 404 issues. However, we've never considered building Windows containers (#2215 (comment)) and cannot guarantee anything. I noticed you already thumped-up to #2215 (comment). Have you tested using a windows base image from your local Docker engine and checked if your Windows container built by Jib works? I'm really curious. |
Yes, I've tested using the image from cache:
Unfortunately, I got the same error as @phxnsharp :
|
I've reported this error separately as #2270. It's not related to Windows Containers, it fails also for Linux Containers on Windows. As I wrote, I'm willing to fix this particular issue. |
@phxnsharp we've released Jib 2.1.0, which fixes the bug that prevented loading local Docker images on Windows (#2270). At least you can now load local Docker images on Windows. However, as mentioned in #2270, building Windows containers is basically not supported. |
I'll close this as a dup of #1568. |
Environment:
Description of the issue:
Attempting to use a windows build of openjdk docker hub base image fails with the error:
Unrecognized field "urls" (class com.google.cloud.tools.jib.image.json.BuildableManifestTemplate$ContentDescriptorTemplate), not marked as ignorable (3 known properties: "size", "digest", "mediaType"])
Expected behavior:
Project builds and runs correctly on Docker Desktop for Windows setup to run Windows containers.
Steps to reproduce:
Using spring-petclinic example because it makes it easy to reproduce. Not the project I am really attempting to work with.
jib-maven-plugin
Configuration:Log output:
Additional Information:
The text was updated successfully, but these errors were encountered: