Open exp0nge opened 2 months ago
It's possible that this is already fixed, could try and see if this is present in https://github.com/bazel-contrib/rules_oci/releases/tag/v1.8.0?
Encountered the same issue with the tarball target where format="oci"
and image = ":image-index"
. Tried v1.8.0 but it has another issue #653 at least on Mac M2.
It's possible that this is already fixed, could try and see if this is present in https://github.com/bazel-contrib/rules_oci/releases/tag/v1.8.0?
Tried v1.8.0 without #602, still the same error.
It's possible that this is already fixed, could try and see if this is present in https://github.com/bazel-contrib/rules_oci/releases/tag/v1.8.0?
Same error also on v1.8.0
Tried v1.8.0 without #602, still the same error.
Are these two related? because #602 is about oci_pull whereas this issue is about oci_tarball.
Tried v1.8.0 without #602, still the same error.
Are these two related? because #602 is about oci_pull whereas this issue is about oci_tarball.
I don't think so. I mentioned it because version upgrade 1.7.6 => 1.8.0 brought a different error. Details are in #653
It still fails on the main branch at https://github.com/bazel-contrib/rules_oci/blob/a32f3bfe82464cda39959a6ae24b8ec547c67abc/oci/private/load.sh.tpl#L31
Seems like docker load
requires docker-specific metadata which is not present in oci formats.
If docker format itself supports multi-arch images, then probably we have to implement that in rules_oci - probably at oci/private/tarball.sh.tpl
docker engine 27.2.0 seems to support loading oci image but I still get the same error.
https://github.com/moby/moby/pull/44833
You can test it by adding followings to examples/multi_architecture_image/BUILD.bazel
and run bazel run //examples/multi_architecture_image:load
oci_load(
name = "load",
image = ":index",
repo_tags = ["my-repository:latest"],
format = "oci",
)
Docker by default does not support loading oci tarballs into the daemon, that's probably what you are seeing here. Please make sure that you enabled containerd image store experiment if you are using docker.
This issue is now a documentation issue. Need to mention enabling containerd image store.
This issue is now a documentation issue. Need to mention enabling containerd image store.
I reported this issue and used containerd in darwin/arm64 and runc debian/amd64. Has it been fixed when using containerd?
bazel: 5.4.1 rules_oci version: 1.7.6 Runtimes:
Snippet of the tarball:
This ends up with
Tried directly: