Skip to content
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

Failed to login via GUI when password has special chars #2016

Closed
caarlos0 opened this issue Aug 30, 2017 · 25 comments
Closed

Failed to login via GUI when password has special chars #2016

caarlos0 opened this issue Aug 30, 2017 · 25 comments

Comments

@caarlos0
Copy link

caarlos0 commented Aug 30, 2017

Expected behavior

I click in the tray menu, login, write user and pwd, and it logs in.

Actual behavior

It always says my password is invalid. Logging in via docker login works with the same user/pwd.

I also logged in with another account and it works.

I believe that the chars that make the password not work are one of those: <>:),-
The password that worked has special chars too, like _ and ;, and it works, so I'm assuming the problem is with the other chars.

Information

  • Full output of the diagnostics from "Diagnose & Feedback" in the menu
Docker for Mac: version: 17.06.1-ce-mac24 (4cdec4294a50b2233146b09469b49937dabdebdd)
macOS: version 10.12.6 (build: 16G29)
logs: /tmp/5CD1370B-0EFF-4504-A731-23FA8B386B2F/20170830-143904.tar.gz
[OK]     db.git
[OK]     vmnetd
[OK]     dns
[OK]     driver.amd64-linux
[OK]     virtualization VT-X
[OK]     app
[OK]     moby
[OK]     system
[OK]     moby-syslog
[OK]     db
[OK]     env
[OK]     virtualization kern.hv_support
[OK]     slirp
[OK]     osxfs
[OK]     moby-console
[OK]     logs
[OK]     docker-cli
[OK]     menubar
[OK]     disk

  • A reproducible case if this is a bug, Dockerfiles FTW

n/a

  • Page URL if this is a docs issue or the name of a man page

n/a

Steps to reproduce the behavior

  1. Login via the tray icon menu item with a password having these chars: <>:),-
  2. that's it
@danlsgiga
Copy link

Same thing here! Lost my last 2 days trying to figure this out!

@danlsgiga
Copy link

danlsgiga commented Sep 1, 2017

And I just confirmed, if you have : in your password it fails!

@kevlarr
Copy link

kevlarr commented Sep 3, 2017

Brilliant, this has been blocking me for several days...

Although I seem to be different in that docker login was having issues for me as well. It would say "Login succeeded" but would fail to push because of access restrictions. Removing the : from my password made both docker and Docker for Mac log in properly.

@caarlos0
Copy link
Author

caarlos0 commented Sep 3, 2017

@kevlarr yeah seems like docker login via the cmd is ignored and what matter is logging in via the GUI...

@n4ss
Copy link

n4ss commented Oct 2, 2017

This issue is fixed in the latest release.

@caarlos0 caarlos0 closed this as completed Oct 2, 2017
@caarlos0
Copy link
Author

caarlos0 commented Oct 2, 2017

thanks!

@jdbohrman
Copy link

Broken again......

@concrain
Copy link

concrain commented Aug 9, 2018

yup.. denied: requested access to the resource is denied

@CRIZN
Copy link

CRIZN commented Aug 14, 2018

Yeah same here unfortunately.

@bilal-khan
Copy link

Same here ☹️

@sheezyontrack
Copy link

sheezyontrack commented Aug 16, 2018

I am having this issue now. It shows waiting for each layer and then the message:

denied: requested access to the resource is denied

@ramanurs
Copy link

Any updates on this issue? I am facing same issue.
I do not have ":" in my password and it does say I am logged in successfully but push fails.

@bilal-khan
Copy link

bilal-khan commented Sep 17, 2018

@sheezyontrack @ramanurs Are you trying to use a free private repo on an organisation account?
Apparently that doesn't exist anymore and you'll need to pay for a private repo for an org.

@ramanurs
Copy link

Yes I figured out that yesterday that my github repo is private and could not be used to push or pull images. Once I made it public it started working. But it was confusion as I am able to login but not able to push or pull images.

@hbirkdale
Copy link

I'm seeing this now too on my new Mac Book pro. My password does not contain any special characters, but I did notice that, although logging in through the CLI appears to work, logging in through menu does not work at all.

@praveenkumar
Copy link

With the same credentials I am able to login to docker hub and even from docker for mac UI :(

Mac version 10.14 (18A391)

16:53 $ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: <username>
Password: 
Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or passphrase you entered is not correct.`

@mtapia79
Copy link

mtapia79 commented Jan 7, 2019

Ensure, you don't have special character in your password. I was this problem with jenkins at time to push image in Docker Hub.

@kamlekar
Copy link

In my case, the mac docker app was logged out. I just needed to login which fixed the issue.

@olwend
Copy link

olwend commented Aug 14, 2019

After creating a public repo push gave 'denied: requested access to the resource is denied' error.
'docker logout' then 'docker login' on CLI resolved this.

@davegill
Copy link

davegill commented Dec 24, 2019

Docker sends me here when I have this trouble from a Mac command line:

denied: requested access to the resource is denied

I am running Mac Mojave 10.14.6 with

docker --version
Docker version 17.12.0-ce, build c97c6d6

I have tried most of the suggestions from
https://stackoverflow.com/questions/41984399/denied-requested-access-to-the-resource-is-denied-docker

  1. Logout and then log back in.
  2. Change the password to not have any special characters.
  3. Specifically try --username= and --email=. Perhaps my version is too old to support the --email= option.
docker login --username=davegill --email=gill@xxxx.xxxx
unknown flag: --email
See 'docker login --help'.
  1. I retried the logout/login/tag/push.
  2. Used docker.io with the login command.
docker login docker.io --username=davegill
  1. My docker image is public. I did not try to toggle back and forth between private and public.
    Screen Shot 2019-12-23 at 6 42 31 PM
  2. When I tried to use the Mac Docker Cloud app to login, it repeatedly says my password is wrong. I can go to cloud.docker.com and login with that password without any troubles.

Screen Shot 2019-12-23 at 6 25 20 PM

Here's what I see:

docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
davegill/wrf-coop   sixthtry            153b4dcce135        About an hour ago   5.32GB
wrf-coop            latest              153b4dcce135        About an hour ago   5.32GB
centos              7                   5e35e350aded        6 weeks ago         203MB
docker login docker.io --username=davegill
Password: 
Login Succeeded
docker push davegill/wrf-coop:sixthtry
The push refers to repository [docker.io/davegill/wrf-coop]
aec11f36ca16: Preparing 
dcf5a9eb6119: Preparing 
3067e4c8a333: Preparing 
e7cf4fec39f7: Preparing 
8322bbc3ea9b: Preparing 
7a14c9ecfc89: Waiting 
5a3bd67311bc: Waiting 
2c3d0c8a6114: Waiting 
1c5ca571fb20: Waiting 
57a0bd0f18ff: Waiting 
631a0ca34e38: Waiting 
aa813be0d896: Waiting 
a33612b5aa1b: Waiting 
1a78ddd7082c: Waiting 
f3172e6970da: Waiting 
3a22c132a5a2: Waiting 
b04306fd0c56: Waiting 
058ce0ec5c56: Waiting 
0991eeb3b5cc: Waiting 
5b7ff53b0d05: Waiting 
be43ee1aece0: Waiting 
bd5e26c38ee4: Waiting 
65de77d148ad: Waiting 
61d649aff3e8: Waiting 
1c9f03b2f1a4: Waiting 
96c1843bb9cb: Waiting 
a2b1a7d67ce0: Waiting 
14401de444cd: Waiting 
2c6d1c92d170: Waiting 
c14a50d18598: Waiting 
6de599a698e2: Waiting 
b0438b745f9a: Waiting 
da24a7d8569f: Waiting 
7a42dc5208b2: Waiting 
f73428ecad23: Waiting 
77b174a6a187: Waiting 
denied: requested access to the resource is denied

But, with no Mac involved ...

Yep, works just fine on Linux

docker login --username=davegill
Password: 
Login Succeeded
docker images
REPOSITORY                    TAG                 IMAGE ID            CREATED              SIZE
wrf-coop                      latest              c36f5f2b0cc6        About a minute ago   5.32 GB
wrf_regtest                   latest              f3194cebef7f        22 hours ago         4.72 GB
docker.io/centos              7                   5e35e350aded        6 weeks ago          203 MB
docker.io/davegill/wrf-coop   fifthtry            efc665da99ef        7 months ago         4.28 GB
docker tag c36f5f2b0cc6 davegill/wrf-coop:sixthtry
docker push davegill/wrf-coop
The push refers to a repository [docker.io/davegill/wrf-coop]
a8413ff8663e: Pushed 
70cae866bd82: Pushed 
70e53369fada: Pushed 
3f02a5dd585d: Pushed 
13512148c8e4: Pushed 
9c871cfae1ba: Pushed 
ace4a5a22c5e: Pushed 
f952c9430c22: Pushed 
b15821abd495: Pushed 
62049fb5e6bd: Pushed 
490f467bea6c: Pushed 
d9da55ecb465: Pushed 
567a49882abf: Pushed 
a78426549d8e: Pushed 
981d1b3459f9: Pushed 
6d7c8f3d7e93: Pushed 
52799ff16b95: Pushed 
72077b6e2026: Pushed 
5832eb7a14c0: Pushed 
b36b028cafd9: Pushed 
6bab26ad90eb: Pushed 
b573eac1a597: Pushed 
577b3970e142: Pushed 
a43df483d4c6: Pushed 
5f9915fd4773: Pushed 
b28bbcda98ef: Pushed 
99a9e17ca7bf: Pushed 
17395b31aedf: Pushed 
18c795cb6951: Pushed 
2dcff09c1234: Pushed 
b76fda528e10: Pushed 
5b3224f88db9: Pushed 
a088d1f245e1: Pushed 
b3e095c35fb0: Pushed 
1be2f4aa6424: Pushed 
77b174a6a187: Mounted from library/centos 
sixthtry: digest: sha256:e252e5bb8fa95fe5202ec24bde51c1636739cfdcb87fe0dc9a0d628e02921eb0 size: 7882

@ragsarang
Copy link

Updating to latest did not fix the issue.
password does not have ':'.
Logging into Mac Docker app fixed issue for me.

@FlorinAndrei
Copy link

FlorinAndrei commented Apr 13, 2020

3 years later and we still have this issue. :(

@axebox
Copy link

axebox commented Apr 14, 2020

I just changed my password omitting special characters (is this for real?). Still not able to pull without getting resource denied.

@berkobob
Copy link

Cannot push "denied: requested access to the resource is denied"

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests