OS: Ubuntu 18.04 Server
Docker 18.3 CE
I am logged onto the server, from my Windows 10 laptop, using a PuTTY SSH session.
I don't have Docker on my local Windows laptop, so all the work is done on the remote server.
I can execute all Docker commands, on the remote server, using the terminal session.
However, when I try to save my image to the Docker hub, when I try to login, using:
docker login
I get the following error message:
error getting credentials - err: exit status 1, out: `GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files`
I did not get any error messages, when I created my image on the remote server.
I also do not see a .docker folder in the related home directory on the remote server. Any ideas?
22 Answers
Edit 2019-04-07:
As this is the currently selected answer, I think people should try @Anish Varghese solution below first as it seems to be the easiest. You only need to install the gnupg2 and pass packages:
sudo apt install gnupg2 pass
If it doesn't work, then you can try my original solution here:
docker login
from within a LXD/LXC container. That particular one I solved by copying.docker/config.json
from my host over to my$HOME/.docker/
directory within the LXD/LXC container, which I created manually. I'm currently trying to figure out another issue now, but wanted to ask if you had you tried doing this yet?