-
Notifications
You must be signed in to change notification settings - Fork 693
docker hub container_pull failing with auth error after upgrades #704
Comments
you might need to setup auth in your new machine? https://github.com/bazelbuild/rules_docker/blob/master/README.md#authentication |
But these are public repositories on Docker Hub? Those docs are for private repos from Azure and GCP, yeah? I don’t see any info on how or why we’d need auth for public repos on Docker Hub |
hmm not sure what might be wrong in the setup. do you have some repro instructions? |
Yeah, if you clone https://github.com/jmhodges/bazel_bugs and checkout the branch That error is:
|
Here's the config.json that the fresh install of docker 2.0.0.3 gave me:
|
Because I'm suspecting this is a containerregistry problem, I made a ticket over there: google/containerregistry#144 Can you repro with that config.json? |
Ugh, yeah, replacing the |
Thanks for debugging. We'll follow-up on the containerregistry issue to make sure it gets resolved promptly. |
Thank you for working with me on this! |
Ping! |
Hi @jmhodges, google/containerregistry is currently in maintenance mode and it's unlikely they'll implement a feature to support newer docker config formats. We are migrating rules_docker to go-containerregistry. I suggest trying
I just tried this and it worked for me. |
Thanks for the update! That worked! I'll close this out |
With bazel 0.23 and docker 2.0.0.3 (stable) on macOS 10.14.3, my previously working
container_pull
s of docker hub images are failing with an odd error:That's with the below
container_pull
and happens with both rules_docker's current HEAD 0d355f1, and the much older 85450d2.in my WORKSPACE. This also happens with a postgres image I have in there. My manual
docker pull
s work just fine for these images.This is, unfortunately, a fresh machine and I can't figure out what else might have changed.
The text was updated successfully, but these errors were encountered: