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

Authentication failure #192

Open
tuxfan opened this issue Dec 20, 2020 · 4 comments
Open

Authentication failure #192

tuxfan opened this issue Dec 20, 2020 · 4 comments

Comments

@tuxfan
Copy link

tuxfan commented Dec 20, 2020

After I successfully login with docker login. I can push/pull etc. However, after some short amount of time, when I try to push again, I get the following error:

denied: requested access to the resource is denied unauthorized: authentication required

If I logout, and log back in again, I can again push/pull etc.

This seems to be related to the docker-credential-helper for pass, with the latest docker-ce version: 20.10.1-3. When I go back to a plain text credential, this problem seems to go away.

I am using the amd64 binary for 0.6.3.

@Wolvverine
Copy link

#102 (comment)

#121

@huanngzh
Copy link

After I successfully login with docker login. I can push/pull etc. However, after some short amount of time, when I try to push again, I get the following error:

denied: requested access to the resource is denied unauthorized: authentication required

If I logout, and log back in again, I can again push/pull etc.

This seems to be related to the docker-credential-helper for pass, with the latest docker-ce version: 20.10.1-3. When I go back to a plain text credential, this problem seems to go away.

I am using the amd64 binary for 0.6.3.

Have you solved it? I met the same problem as yours, with version 0.6.4.

@tsoftware-tedu
Copy link

tsoftware-tedu commented Feb 21, 2023

After I successfully login with docker login. I can push/pull etc. However, after some short amount of time, when I try to push again, I get the following error:
denied: requested access to the resource is denied unauthorized: authentication required
If I logout, and log back in again, I can again push/pull etc.
This seems to be related to the docker-credential-helper for pass, with the latest docker-ce version: 20.10.1-3. When I go back to a plain text credential, this problem seems to go away.
I am using the amd64 binary for 0.6.3.

Have you solved it? I met the same problem as yours, with version 0.6.4.

Is your private key set to a password? If so, this may be because the gpg2 private key management password prompt did not pop up correctly, preventing you from validating your private key password.
You can use the following steps:

 pass
 pass show docker-credential-helpers/"aGFyYm9yaasfvvdsasfsaZQ==/username"(Replace the quotation marks with your own credentials)

Enter the management password of the private key in the popped-up window, so that you can push/pull

The password of this private key will expire after 7200 seconds. You need to repeat the steps above.

You can also create a gpg-agent.conf , Add the following configuration:

  touch ~/.gnupg/gpg-agent.conf
  default-cache-ttl 62208000
  max-cache-ttl 62208000

Restart gpg agent

gpg-connect-agent reloadagent /bye

The command should print OK.
The above configuration sets the password caching of the private key to two years, so you won't need to enter the password frequently.

For more information or assistance please refer to the: Cache_passwords

@HiGein
Copy link

HiGein commented Feb 28, 2023

Unfortunately ttl workaround doesn't work for me. It would be great if docker push could properly handle authentication using docker-credentials-pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants