Open tuxfan opened 3 years ago
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.
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 forpass
, 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
Unfortunately ttl workaround doesn't work for me. It would be great if docker push
could properly handle authentication using docker-credentials-pass
.
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.