zalando-stups / pierone-cli

DEPRECATED: Convenient command line client for STUPS' Pier One Docker registry
http://docs.stups.io/en/latest/components/pierone.html#command-line-client
Other
10 stars 13 forks source link

no basic auth credentials #58

Closed dmigo closed 7 years ago

dmigo commented 7 years ago

Today I had an auth issue. While trying to do docker push I was getting the following log:

➜ pierone login             
Getting OAuth2 token "pierone".. OK
Storing Docker client configuration in /Users/whoever/.docker/config.json.. OK
➜ docker push myrepo/...
The push refers to a repository [myrepo/...]
a5f591aacc10: Preparing 
...
cb11ba605400: Waiting 
no basic auth credentials

Recreating ~/.docker/config.json saved me.
There was "credsStore": "osxkeychain" setting In the previous version of the ~/.docker/config.json which was causing me troubles.

BTW mac os 10.12.3 pierone cli 1.1.27 docker 17.06.0-ce, build 02c1d87

hjacobs commented 7 years ago

As this apparently happens "more frequently" in the past weeks (only on Mac), we should investigate...

mvalkon commented 7 years ago

Occurs somewhat frequently for me as well on OS X.

luisfarzati commented 7 years ago

Same here, Mac OS Sierra (Docker 17.06.1-ce-mac24 (18950))

{
    "auths": {
        "https://pierone.stups.zalan.do": {
            "auth": "xxx",
            "email": "no-mail-required@example.org"
        },
        "https://registry-write.opensource.zalan.do": {
            "email": "no-mail-required@example.org",
            "auth": "xxx"
        },
        "https://registry.opensource.zalan.do": {
            "email": "no-mail-required@example.org",
            "auth": "xxx"
        }
    },
    "credsStore": "osxkeychain"
}

Deleting "credsStore": "osxkeychain" from the JSON did the trick.

luisfarzati commented 7 years ago

Some research we just did with @Raffo : https://github.com/docker/for-mac/issues/1826