cli: Error saving credentials: error storing credentials in Ubuntu 18.04 LTS
Hi there, when I try to log into docker hub from the CLI to push and pull the images, I’m getting this error. My os is Ubuntu 18.04 LTS
`Error saving credentials: error storing credentials - err: exit status 1, out: `Error calling StartServiceByName for org.freedesktop.secrets: Timeout was reached``
Setps to reproduce :
docker login
- enter username once prompt
- enter password once prompt
Following are my docker version and docker info
docker version
`Client:
Version: 18.05.0-ce
API version: 1.37
Go version: go1.9.5
Git commit: f150324
Built: Wed May 9 22:16:13 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.05.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.5
Git commit: f150324
Built: Wed May 9 22:14:23 2018
OS/Arch: linux/amd64
Experimental: false`
docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 111
Server Version: 18.05.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-23-generic
Operating System: Ubuntu 18.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 15.58GiB
Name:
ID:
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No swap limit support
```
`
Thanks in advance
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 85
- Comments: 65
sudo apt install gnupg2 pass
Work for me !
I think this problem occurs because it couldn’t find or create the config.json in home/.docker/. What I did was I renamed docker-credential-secretservice to something else and tried login in again. Then it created the config.json by itself and I was able to login to docker hub. This is where I found the temporary solution to this: https://stackoverflow.com/questions/50151833/cannot-login-to-docker-account
not worked for me
Just reinit config.json work!
very helpful!!
Install the following Packages in ubuntu 18.04 fixed my issue
sudo apt install gnupg2 pass
Solution by Anish Varghese is the easiest on https://stackoverflow.com/questions/50151833/cannot-login-to-docker-account
On Ubuntu Ubuntu
19.04
apt install pass
does a trick for me.
Worked for me ❤️ thanks bro
@Titom222 Works for me. (Using a Azure Ubuntu 18.04 machine with 8G memory)
@Titom222 Works for me. Thnx! 👍
is work for me Tnks
@Titom222 It works for me too and thanks to you. Good on you.
@Titom222 it worked for me also. (Ubuntu 18.04.2 LTS on VMware)
@Titom222 Works for me, same error on 18.04 LTS, headless
@thishandp7 solution worked for me 👍
Very helpful, I also had same issue on Ubuntu 18.04. Thanks a lot.
I deleted the line
"credsStore": "secretservice"
from the~/.docker/config.json
fileWorks! Thx
Thank so much, helped me when trying to login to remote Docker on AWS. Using WSL2 Ubuntu 18.04
I care thanks for letting the community know @abetoots
If you are using Ubuntu 19.04, try this. Worked for me. Thanks
It solved for me sudo apt-get remove docker-ce docker-ce-cli containerd.io sudo snap install docker
@Titom222 Worked for me too 😃
@Titom222 It works! Thanks
@Titom222 It works! Thanks!
@Titom222 Works for me. Thnx! +1
Thank you!👌
Also for me! Thanks!
@saschaiseli That worked perfectly 🤙🏼Thanks a lot!
@Titom222 Worked for me! Thanks.
@Titom222 Worked for me! Thanks. Jeez! How did you find this?!
It helped me too. Thx!
@solesensei solution worked for me. using Ubuntu 20.04 with WSL. also tested running the command from VS Code’s terminal and it also works
I have the same issue. Mine seems weirder though. I have windows with WSL2, when I run things directly from WSL2 it works, but when I run it from the terminal in VS Code that I have started from WSL2 I do get the error.
@Titom222 you saved my day! )
It worked for me as well. Thank you
Thank You
Installing gnupg2 and pass didn’t work for me either, but this did, thank you!
thanks timtom…it worked for me too 😃
@Titom222 Still couldn’t believe that worked…
Ran into this today and this fix worked for me.
This worked for me, thank you!
I also had to delete the line: “credsStore”: “secretservice” from the ~/.docker/config.json file
I recently upgraded from Ubuntu 18 to Ubuntu 20 and docker stopped working. Works now.
deleted the config.json file and logged in again. This solved the issue for me on Ubuntu 20.04 with wsl2
@Titom222 Works for me too! (Linux Mint 19.3 Cinnamon)
@Titom222 It works for me. Thanks
pass will be enough.
@Titom222 thanks a lot u save me a lot of time
Apt resolves for me too ! Thks
This goes against the documented behaviour:
I am on Linux but I have neither
pass
orsecretservice
installed.