You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The registry token sent to the registry is not automatically refreshed even if the credentials are provided.
Taking docker hub as an example, the access token / registry token for anonymous pull is around 300s (i.e. 5 mins). If a reference is resolved and then resolve it again after 5 mins, the docker resolver will report an error. Docker resolver should retry by itself and should not rely on the call to retry.
<nil>
time="2021-12-14T22:56:15+08:00" level=info msg="trying next host" error="pull access denied, repository does not exist or may require authorization: server message: invalid_token: authorization failed" host=registry-1.docker.io
pull access denied, repository does not exist or may require authorization: server message: invalid_token: authorization failed
Expected output:
<nil>
<nil>
What version of containerd are you using?
v1.6.0-beta.3
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response
The text was updated successfully, but these errors were encountered:
One workaround I just tested is to create a new resolver (i.e.with docker.NewResolver) every time you want to pull an image. This is likely inefficient (because there's no opportunity to use cached credentials) and will be prohibitively expensive in an environment where images are constantly being pulled, but it's a fine crutch for my use case for now.
Description
The registry token sent to the registry is not automatically refreshed even if the credentials are provided.
Taking docker hub as an example, the access token / registry token for anonymous pull is around 300s (i.e. 5 mins). If a reference is resolved and then resolve it again after 5 mins, the docker resolver will report an error. Docker resolver should retry by itself and should not rely on the call to retry.
Steps to reproduce the issue
No response
Describe the results you received and expected
Running the following code:
Actual output:
Expected output:
What version of containerd are you using?
v1.6.0-beta.3
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
No response
The text was updated successfully, but these errors were encountered: