-
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
Tried to pull image manifest for registry-1.docker.io/arm64v8/openjdk:8 but failed because: manifest unknown #2148
Comments
Hi @TuringZhai,
{
...
// This whole BLOB itself is a manifest list.
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
// This entry in the list points to the manifest for the ARM64/Linux manifest.
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
...
"digest": "sha256:1fbd49e3fc5e53154fa93cad15f211112d899a6b0c5dc1e8661d6eb6c18b30a6",
"platform": {
"architecture": "arm64",
"os": "linux",
"variant": "v8"
}
}
]
} As you can see, the list shows that the actual manifest for ARM64 is at <from>
<image>openjdk@sha256:1fbd49e3fc5e53154fa93cad15f211112d899a6b0c5dc1e8661d6eb6c18b30a6</image>
</from> If you want, you can leave the tag <image>openjdk:8@sha256:1fbd49e3fc5e53154fa93cad15f211112d899a6b0c5dc1e8661d6eb6c18b30a6</image> Of course, this is inconvenient and a hassle. For this matter, we do have an open issue for a feature to be able to specify an architecture and OS for a manifest list (#1567). That feature is precisely to support this use case. That is, I regard this issue as a duplicate of #1567. |
Closing as a duplicate of #1567. |
|
thank you!
|
Great! I will leave this open |
I thought picking the single item in a manifest list would open us up to breakages if the manifest list ever expanded. |
Then instead of doing that, perhaps we could just print a message like "... is a manifest list, but the list does not contain an image manifest for amd64/Linux. If your intention was to use a non-amd64/Linux base image, see #2148 to learn how to specify a manifest instead of a manifest list, until Jib fixes #1567 to allow specifying architecture and OS." I guess showing a more detailed helpful message won't hurt than doing nothing. |
Should add to FAQ and then link to FAQ instead of this issue directly. |
@XiaoNaoEr Jib Maven 2.5.2 and Jib Gradle 2.5.0 are released with limited support for configuring a platform to select the matching base image from a manifest list. Take a look at the FAQ "How do I specify a platform in the manifest list (or OCI index) of a base image?". I suggest using the new feature instead of using a digest in |
thanks |
Environment:
Description of the issue:
Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.7.0:build (default) on project xxx: Tried to pull image manifest for registry-1.docker.io/arm64v8/openjdk:8 but failed because: manifest unknown
jib-maven-plugin
Configuration:Log output:
The text was updated successfully, but these errors were encountered: