bazel-contrib / rules_oci

Bazel rules for building OCI containers
Apache License 2.0
289 stars 152 forks source link

In bazel 7.0.0 when accessing anonymously registry with oci_pull it fails looking for ~/docker/config.json #457

Open ns-ggeorgiev opened 9 months ago

ns-ggeorgiev commented 9 months ago

The title essentially conveys the message. When trying to pull from the registry without any credentials, the oci_pull operation fails, issuing an error about its inability to load the config file if it's not present.

This process operates as anticipated in version 6.4.0, where it successfully pulls the image without necessitating a docker login.

thesayyn commented 4 months ago

I am not sure if we have every detail here, are you saying that oci_pull fails the whole build, essentially crashing, while looking for a docker config file, or the pull fails because of the authorization failure?

I don't know where we fail if we can't find a docker config, last time i checked it was a simple warning message.