On my Ubuntu 18.04 system I can’t get docker login
to work, either to our company’s private docker repository or to the default (docker’s own repository). I’m prompted for and enter my username, I’m prompted for and enter my password, then it hangs. If I misspell my username, or botch my password, I get an authentication error and it returns. If I type the username and password correctly, then it just hangs. So, it seems to be correctly authenticating, but then locks up.
Things I’ve tried:
-
docker login
(with mydocker.com
free login username/password) -
docker login gitlab.XXXXXX.com:9000
(with my company username and password) -
Updated Docker to the latest (Docker version 20.10.5, build 55c4c88)
-
Updated all the Ubuntu packages (staying on 18.0.4)
-
Left
docker login
hung for a half hour -
Deleted
~/.docker
(it doesn’t seem to be recreated when I run “docker login”) -
sudo docker login
(this time it does complete, but gives me aError saving credentials: error storing credentials - err: exit status 1, out: 'Cannot autolaunch D-Bus without X11 $DISPLAY'
error) -
sudo docker run hello-world
(runs and shows message sayingyour installation appears to be working correctly
) -
docker run -it ubuntu bash
(downloaded Ubuntu image and left me at a bash prompt inside the container)
Any ideas? Is there a “verbose” option to docker login
that will show me what’s going on behind the scenes?
Thanks,
Dan