Closed chrisjs closed 4 years ago
hmm, kbld uses google/go-containerregistry. so far i see that https://github.com/google/go-containerregistry/tree/master/pkg/authn mentions that it is supported. according to https://docs.docker.com/engine/reference/commandline/login/#credentials-store, https://github.com/docker/docker-credential-helpers is the repo responsible for providing these cred helper binaries. looking at this: https://github.com/docker/docker-credential-helpers#with-the-docker-engine, it seems that it's expected that docker-credential-osxkeychain binary is available on the path. is that the case for you?
no i only have docker-credential-gcloud
and docker-credential-secretservice
. i had used the sheaf tool with this configuration which i believe uses the same lib and i didn't have the same issue.
wouldn't docker-credential-osxkeychain
be for mac?
oops, i dont know why i thought you were using osxkeychain cred store. re-reading the issue clearly shows you are not. if docker-credential-secretservice is present, next step for me is to take a look at the exact usage of go-containerregistry's auth methods. will report back.
try out this new version: https://github.com/k14s/kbld/releases/tag/v0.22.0
using that version, things appear to work. thanks!
perfect. that means fix was correct.
On linux, I am seeing auth failures when using the following docker config. This works fine authing against dockerhub, etc:
When running the following command:
It fails with:
docker-credential-secretservice
is on my$PATH
and can see my proper credentials in itWhen changing my docker config.json to use base64 encoded
user:pass
, ie:It then auths and relocates properly and I can see the image in dockerhub: