Open gfrankliu opened 5 days ago
You need to use a credential helper for this to work by the looks of it. https://github.com/bazel-contrib/rules_oci/blob/eebda6568c91a1c437764ed665a7929aa04f294f/oci/private/authn.bzl#L55
The error I saw (as posted in the log above) was 404, not 401.
not everything on nvcr.io requires auth, just like docker.io. I can pull public images from docker.io just fine, without auth.
rm $HOME/.docker/config.json
docker pull envoyproxy/envoy:v1.29.6
oci_pull also works fine:
oci_pull(
name = "envoy_test",
tag = "v1.29.6",
registry = "index.docker.io",
repository = "envoyproxy/envoy",
platforms = ["linux/amd64"],
)
Some of the nvcr images are publicly available. eg, below docker pull works fine:
Now if you use oci_pull from rules_oci v2, it will fail, eg:
I get error:
Switching to oci_pull from rules_oci v1 works with curl fallback.