GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.82k stars 1.44k forks source link

1.2.0: keychain returned no credentials for... #1479

Open bitsofinfo opened 3 years ago

bitsofinfo commented 3 years ago

Kaniko: 1.2.0

My destination is set to myprivreg.mydomain.com/xyz/myapp:7.5.4-1--1-1:

On the first run of kaniko I get an error like this randomly. I immediately run it again... then it works.

error pushing image: failed to push to destination myprivreg.mydomain.com/xyz/myapp:7.5.4-1--1-1: Put "https://myprivreg.mydomain.com/v2/xyz/myapp/blobs/uploads/xxxxx?_state=xxxxxx0%3D&digest=sha256%xxxxx": keychain returned no credentials for "myprivreg.mydomain.com/foo/bar"
bitsofinfo commented 3 years ago

1270 maybe related

i had to stop using Kaniko for the push to an authenticated registry, just was too inconsistent in behavior w/ same creds. On one invocation it works, another it doesn't with this kind of odd error. Tried debugging down into the underlying go registry library to no avail. I switched to just setting the --destination to a local sidecar registry, then i use skopeo to copy it from there to the authenticated registry with zero issues.

aaron-prindle commented 1 year ago

@bitsofinfo are you still encountering this issue? Do you have any additional repro information as well? Thanks