-
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 "LayerSources" with Docker 25.0.0 and from image "docker://" #4171
Comments
Sounds like Jib needs to fix this to support newer Docker versions. In that case, #4172 should do it. |
@derkoe @chanseokoh Thanks for starting this discussion! To better understand the issue, it looks like Jib is return an error when the manifest contains the |
@mpeddada1 I have no context about this. Just guessing from @derkoe's comments, the latest Docker may have this field, at least in some cases. But I thought it wouldn't hurt to allow extra fields anyway. @derkoe should answer these. |
@mpeddada1 it happens with any image I've tried so far. |
Thank you both for the follow-up. Hm @derkoe that is interesting. Are Docker 25 built images always including this field in the manifest now? |
I am not talking about images built with Docker 25 - the image format did not change. I am talking about using a Docker installation in version 25 where Jib get's the image from the daemon |
I see, thanks for the clarification. A follow-up q: do you run into the same issue when using the default base image? Specifically when you don't specify
|
Today I ran into the same problem. As a workaround I tried to create a tar with docker first by using |
Since this day, bitbucket uses version 25 of docker in the pipelines. |
Is there a timeline to release the fix in the near future? |
Is there a plan to release it? It is currently breaking our builds too. |
hey any due date for the fix release as i see it is fixed in #4172 ? |
jib-core:0.26.0, jib-maven-plugin:3.4.1 and jib-gradle-plugin:3.4.1 have been released with this fix. Thanks for reporting @derkoe and thanks for making the fix @chanseokoh! |
Upgrade jib PR workflows are failing due to a somewhat arcane message relating to Docker and jib: https://github.com/aws-observability/aws-otel-java-instrumentation/actions/runs/9568113061/job/26377760995?pr=818 Found an issue that seems at least somewhat related, which was resolved in jib 3.4.1: GoogleContainerTools/jib#4171 In this PR we are upgrading jib from 3.4.0 to 3.4.3, since a) it is generally a good thing to be up to date with dependencies and b) I suspect it will resolve this issue.
Environment:
Description of the issue:
Jib error on Docker 25.0.0. with
<from><image>docker://eclipse-temurin:8-jre</image></from>
:Expected behavior:
Docker daemon as source should work with Docker version 25.0.0
Steps to reproduce:
cd examples/spring-boot
pom.xml
:docker pull eclipse-temurin:8-jre
./mvnw package jib:dockerBuild
jib-maven-plugin
Configuration:Log output:
Additional Information:
Only happens with Docker 25.0.0 - no issues with older versions of Docker.
The text was updated successfully, but these errors were encountered: