New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker login returns "error getting credentials - err: exit status 1 ..." #60
Comments
any update? |
@runcom ^^ |
The same situation before. |
This solved my problem @cuiweiqiang. |
I had kind of similar issue, just remove |
after I update to Mac OS 10.13.1 (17B48) this problem appears and It solved by removing "credsStore": |
+1 |
After removing credsStore in the config.json I got still an error. By disabling the checkbox "securely save docker logins in macOS keychain" in the docker preferences I could finally access my registry. |
mac OS 10.13.2 |
just lock and unlock again the KeyChain Acess in Mac |
@Dean-Christian-Armada solved |
I'll submit a fix to get the command to prompt the keychain password in order to unlock it if needed before trying to access elements. Thanks for submitting the issue and the solution. |
For me I had to remove the package |
@RyanRamchandar I tried removing the above package but docker-compose got removed too... |
@extraymond Just tried it. Running |
@RyanRamchandar it removes docker-compose as well which I cannot afford to lose on my headless Ubuntu 18.04. Any other ideas anyone? So for now i switched my scripts to do what compose would have done for me, but like this there is no point to continue using aws ecr for me now since I won't be able to I could of course just totally packer everything into AMIs and spool these up but cmon.. this annoys me seriously |
@Megachill I'd like to preserve |
If you'd like to keep |
The real problem is that |
The correct workaround should be
This is actually a packaging issue. I will open the appropriate debian and ubuntu bugs time permitting. |
Ubuntu 18.0.1 when installing docker-compose (apt install docker-compose) it comes with |
@abdrmdn Tried that but didn't work. See #60 (comment) |
You can do |
It worked Thanks |
Be aware that if you do this your docker login password may be stored in the clear in your config.json file. |
thanks for your answer |
You can remove the package and ignore the dependency. I did the following and it fixed the problem:
|
@nicholasbernstein if I do so I get
|
Also getting this. Edit: Instead of removing |
This is not a great solution cause apt will think this package is still install and this could lead to strange errros. Use this |
Why this is closed? The error is not solved... |
Not resolved! Come on ! |
just started getting this out of the blue in ubuntu 22.04 |
Same with me on The most voted answer in this Stackoverflow help me solve the issue |
For anyone using docker-desktop on ubuntu 20.04 and facing this issue.
{
"credsStore": "pass"
}
|
it seems like when you pull image from public hub, it docker automatically make you need to login, just do as #60 (comment) in |
This works for me. I followed these steps:
|
Only with run the first two points here, worked for me on Debian 11:
|
Still a bug |
same question, fixed by:
|
For those on MacOS, I've noticed that docker will add Now, whenever I restart docker I no longer need to edit the config file. |
@MuktadirHassan funcionou pra mim , muito obrigado !! <3 🇧🇷 🇧🇷 🇧🇷 |
For those on Archlinux, docker add "credsStore": "desktop" on |
I ran into this issue using Ubuntu WSL and Rancher Desktop. I had previously (a couple weeks ago) logged into my registry, but my solution was to simply log in again using: |
In my case I use WSL2 Debian and I had this issue, and I solved it by using
|
The docker login command is returning the following error for two users out of three users on the same physical host using docker-credential-secretservice Release v0.5.0. The user that can login to docker hub does not have any issue pushing or pulling. All users have the same docker environment variable settings, path, file permissions and content for $HOME/.docker/config.json, run the same shell /bin/bash, same .profile and .bashrc. All users were able to connect to Docker Hub before installing docker-credential-secretservice.
When I delete the $HOME/.docker/config.json file from a user that is receiving the error message, the user continues receiving the same error message when entering docker login until I removed /usr/local/bin/docker-credential-secretservice from the host. Then the user can login to docker hub without the use of docker-credential-secretservice without any incident. It is like docker is looking for docker-credential-secretservice in the PATH before it is checking $HOME/.docker/config.json to see if the user is going to use it. If this assumption is correct then there would be a line added to docker.log unless the error is coming from something docker is calling. Either way what is creating the error message, error getting credentials - err: . . .?
When I re-download and install docker-credential-secretservice onto the host in /usr/local/bin the user again receives the error message. If I remove /usr/local/bin/docker-credential-secretservice but leave $HOME/.docker/config.json as shown below I receive an error that I would expect; error getting credentials - err: exec: "docker-credential-secretservice": executable file not found in $PATH, out: ``
$ docker login
error getting credentials - err: exit status 1, out:
Error spawning command line 'dbus-launch --autolaunch=d7159335070ef1c0854c75de55c8f588 --binary-syntax --close-stderr': Child process exited with code 1
Any help will be appreciated:
Expected all users on the same physical host to receive a login prompt from docker hub.
This incident is also effecting other accounts on other hosts (running Docker 17.04.0-ce, 17.05.0-ce-rc2, and 1.13.1) with similar but different error messages
$ docker login
error getting credentials - err: exit status 127, out: ``
$ cat $HOME/.docker/config.json
{
"auths": {},
"credsStore": "secretservice"
}
$ ls -l $HOME/.docker/config.json
-rw------- 1 uadmin uadmin 49 Apr 29 08:20 /home/uadmin/.docker/config.json
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
$ ls -l /usr/local/bin/docker-credential-secretservice
-rwxr-xr-x 1 root root 2382344 Mar 14 05:20 /usr/local/bin/docker-credential-secretservice
$ env | grep -i docker
DOCKER_HOST=tcp://three.cptx86.com:2376
DOCKER_TLS_VERIFY=1
PWD=/home/uadmin/.docker
DOCKER_CERT_PATH=/home/uadmin/.docker
DOCKER_CONTENT_TRUST=1
OS: Ubuntu 14.04.5 LTS
$ docker version
Client:
Version: 17.03.0-ce
API version: 1.26
Go version: go1.7.5
Git commit: 60ccb22
Built: Thu Feb 23 10:57:47 2017
OS/Arch: linux/amd64
Server:
Version: 17.03.0-ce
API version: 1.26 (minimum version 1.12)
Go version: go1.7.5
Git commit: 60ccb22
Built: Thu Feb 23 10:57:47 2017
OS/Arch: linux/amd64
Experimental: false
$ cat /etc/default/docker
DOCKER_OPTS="
--graph=/usr/local/docker
--dns 192.168.1.202
--dns 8.8.8.8
--dns 8.8.4.4
--host=
hostname -f
:2376--label XHOST=
hostname -f
--label XIPADDRESS=
hostname -i
--label XOS=
lsb_release -d | awk '{ print $2"-"$3"-"$4 }'
--label XRELEASE=
docker version | grep -m 1 Version: | awk '{ print $2 }'
--label XSECURITY=namespace-control
--log-level warn
--log-driver=json-file
--log-opt max-size=5m
--log-opt max-file=7
--log-opt labels=host,ip,gateway,id
--tlsverify
--tlscacert=/etc/docker/certs.d/daemon/ca.pem
--tlscert=/etc/docker/certs.d/daemon/
hostname -f
-cert.pem--tlskey=/etc/docker/certs.d/daemon/
hostname -f
-priv-key.pem--userns-remap=default
"
$ docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 2
Server Version: 17.03.0-ce
Storage Driver: aufs
Root Dir: /usr/local/docker/362144.362144/aufs
Backing Filesystem: extfs
Dirs: 2
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: 6hkwnobu6t374trqoaosx2wbg
Is Manager: true
ClusterID: fphwipe950p46noadhkzjci06
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 192.168.1.203
Manager Addresses:
192.168.1.203:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
apparmor
userns
Kernel Version: 4.4.0-75-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 11.72 GiB
Name: three
ID: KIKV:2ITY:O5GF:5JEA:O5F6:GKKS:DYGG:NUMO:UTYK:B6ZR:OKB7:BECJ
Docker Root Dir: /usr/local/docker/362144.362144
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
XHOST=three.cptx86.com
XIPADDRESS=192.168.1.203
XOS=Ubuntu-14.04.5-LTS
XRELEASE=17.03.0-ce
XSECURITY=namespace-control
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
$ tail /var/log/upstart/docker.log
No error found in /var/log/upstart/docker.log
Daemon debug mode: The daemon output with debug set is the same for all three users.
$ tail /var/log/upstart/docker.log
time="2017-04-29T11:30:51.531218145-05:00" level=debug msg="Calling GET /_ping"
time="2017-04-29T11:30:51.531554559-05:00" level=debug msg="Calling GET /v1.26/info"
The text was updated successfully, but these errors were encountered: