Comments (7)
Hmm... just to rule out something: can you try with ./gradlew jibDockerBuild -Djib.useOnlyProjectCache=true
? This way, Jib won't use centrally cached images.
from jib.
Same result unfortunately.
from jib.
What if you specify the SHA pointing to the manifest list as the from
image reference?
You can take note of the correct SHA when you run the following command on x64 (not on Mac). Mind clean
and -Djib.useOnlyProjectCache=true
. And it's be interesting to see if the same command reports a different SHA on Mac.
$ ./gradlew -Djib.useOnlyProjectCache=true clean jibDockerBuild
...
Containerizing application to Docker daemon as ...
The base image requires auth. Trying again for alpine@sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321...
Using credentials from Docker config (/home/chanseok/.docker/config.json) for alpine@sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Using base image with digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
And make sure the SHA points to a manifest list. In my case above,
$ docker manifest inspect alpine@sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
...
from jib.
I tried informing the image sha256, but it didn't work. But I noticed something. Although the sha256 I'm providing is a manifest (when I check on the registry itself), the downloaded version on my laptop is the linux/arm64 version.
About the command you recommended, the error was the same.
My docker version is 4.29.0, and I tried with containerd enabled and disabled, both returns the same error and the same result when running docker inspect <image>
.
PS: Randomly during my tests I saw a message about not being able to build multi-arch using docker, but it doesn't show-up all the time.
from jib.
Quick update. If I run docker manifest inspect
the result is the same as the registry.
from jib.
As a last resort, I'd like to see all the raw HTTP requests and responses between Jib and your registry. Can yo follow these instructions to capture the traffic? Make sure you include both clean
and -Djib.useOnlyProjectCache=true
. (That is, it should not use the cached image.) You may also want -X
(debug logging) instead of --info
, but actually I am not sure if debug logging will be useful.
You may redact the registry address, but please do not redact SHA strings.
PS: Randomly during my tests I saw a message about not being able to build multi-arch using docker, but it doesn't show-up all the time.
Yeah, regardless of this issue, jibDockerBuild
will not work anyway, because the Docker engine doesn't support storing a manifest list.
from jib.
Sorry for the late reply. I'll try this as soon as possible and get back with the results.
from jib.
Related Issues (20)
- Is it possible to do the same thing through pom as jib-cli ? HOT 1
- Empty folders in the /app/resources directory slow down resource file scanning
- Jib Ubuntu and MacOS Continuous Builds are failing HOT 5
- Unauthorized error when Harbor redirects to official Docker Hub images HOT 2
- Automatically add standard oci annotations for base images
- Publish a release with #4204 HOT 3
- Upgrade ASM to 9.6 to support Java 22
- jvmFlags.add throws UnsupportedOperationException in gradle jib plugin
- Core Release v0.27.0-core
- Plugin Release v3.4.2-gradle
- Plugin Release v3.4.2-maven
- Jib CLI base image cache problem
- Jib CLI proxy usage not documented
- Some dependencies in jib-core are set to wrong dependency scope that may cause compilation error. HOT 3
- Jib 3.4.2 build fails HOT 22
- Jib MacOS Continuous job still experiencing failure with jetty
- Release jib cli v0.13.0 ? HOT 3
- CLI Release v0.13.0-cli
- Failing UP-TO-DATE checks for jib-gradle-plugin HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jib.